mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pyln: allow to signal may_fail in get_node()
This or `expect_fail`, as it implies that, well, the node may fail. Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
905730341a
commit
5b45334d93
@@ -1026,8 +1026,8 @@ class NodeFactory(object):
|
||||
|
||||
def get_node(self, node_id=None, options=None, dbfile=None,
|
||||
feerates=(15000, 11000, 7500, 3750), start=True,
|
||||
wait_for_bitcoind_sync=True, expect_fail=False,
|
||||
cleandir=True, **kwargs):
|
||||
wait_for_bitcoind_sync=True, may_fail=False,
|
||||
expect_fail=False, cleandir=True, **kwargs):
|
||||
|
||||
node_id = self.get_node_id() if not node_id else node_id
|
||||
port = self.get_next_port()
|
||||
@@ -1043,7 +1043,8 @@ class NodeFactory(object):
|
||||
db = self.db_provider.get_db(os.path.join(lightning_dir, TEST_NETWORK), self.testname, node_id)
|
||||
node = self.node_cls(
|
||||
node_id, lightning_dir, self.bitcoind, self.executor, db=db,
|
||||
port=port, options=options, **kwargs
|
||||
port=port, options=options, may_fail=may_fail or expect_fail,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
# Regtest estimatefee are unusable, so override.
|
||||
|
||||
Reference in New Issue
Block a user