mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pytest: fix experimental test.
Broken back in 3b8c0a7397 which
changed the behavior of funding not to mark as immediately spent.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -912,8 +912,10 @@ def test_transaction_annotations(node_factory, bitcoind):
|
|||||||
l1.connect(l2)
|
l1.connect(l2)
|
||||||
fundingtx = l1.rpc.fundchannel(l2.info['id'], 10**5)
|
fundingtx = l1.rpc.fundchannel(l2.info['id'], 10**5)
|
||||||
|
|
||||||
# We should have one output available, and it should be unconfirmed
|
# We should have one output unreserved, and it should be unconfirmed
|
||||||
outputs = l1.rpc.listfunds()['outputs']
|
outputs = l1.rpc.listfunds()['outputs']
|
||||||
|
assert len(outputs) == 2
|
||||||
|
outputs = [o for o in outputs if not o['reserved']]
|
||||||
assert(len(outputs) == 1 and outputs[0]['status'] == 'unconfirmed')
|
assert(len(outputs) == 1 and outputs[0]['status'] == 'unconfirmed')
|
||||||
|
|
||||||
# It should also match the funding txid:
|
# It should also match the funding txid:
|
||||||
|
|||||||
Reference in New Issue
Block a user