lightningd: allow multiple cancels on a single fundchannel command.

Instead of taking over the ->cmd pointer, append ourselves to a list
of cancels.  This fixes the test_funding_cancel_race.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-06-13 13:56:51 +09:30
committed by neil saitug
parent 4b1a300ee3
commit 280bd60988
2 changed files with 30 additions and 11 deletions

View File

@@ -853,7 +853,6 @@ def test_funding_external_wallet_corners(node_factory, bitcoind):
l1.rpc.fundchannel_start(l2.info['id'], amount)
@pytest.mark.xfail(strict=True)
def test_funding_cancel_race(node_factory, bitcoind, executor):
l1 = node_factory.get_node()
nodes = node_factory.get_nodes(100)