@@ -3906,8 +3906,8 @@ def test_closing_tx_valid(node_factory, bitcoind):
39063906 close = l1 .rpc .close (l2 .info ['id' ])
39073907
39083908 wait_for (lambda : len (bitcoind .rpc .getrawmempool ()) == 1 )
3909- assert only_one (bitcoind .rpc .getrawmempool ()) == close ['txid' ]
3910- assert bitcoind .rpc .getrawtransaction (close ['txid ' ]) == close ['tx' ]
3909+ assert only_one (bitcoind .rpc .getrawmempool ()) == only_one ( close ['txids' ])
3910+ assert bitcoind .rpc .getrawtransaction (only_one ( close ['txids ' ])) == only_one ( close ['txs' ])
39113911 bitcoind .generate_block (1 )
39123912 # Change output and the closed channel output.
39133913 wait_for (lambda : [o ['status' ] for o in l1 .rpc .listfunds ()['outputs' ]] == ['confirmed' ] * 2 )
@@ -3921,8 +3921,8 @@ def test_closing_tx_valid(node_factory, bitcoind):
39213921 close = l1 .rpc .close (l2 .info ['id' ], 1 )
39223922
39233923 wait_for (lambda : len (bitcoind .rpc .getrawmempool ()) == 1 )
3924- assert only_one (bitcoind .rpc .getrawmempool ()) == close ['txid' ]
3925- assert bitcoind .rpc .getrawtransaction (close ['txid ' ]) == close ['tx' ]
3924+ assert only_one (bitcoind .rpc .getrawmempool ()) == only_one ( close ['txids' ])
3925+ assert bitcoind .rpc .getrawtransaction (only_one ( close ['txids ' ])) == only_one ( close ['txs' ])
39263926
39273927
39283928@unittest .skipIf (TEST_NETWORK != 'regtest' , 'elementsd does not provide feerates on regtest' )
@@ -3933,7 +3933,7 @@ def test_closing_minfee(node_factory, bitcoind):
39333933
39343934 wait_for (lambda : only_one (l1 .rpc .listpeerchannels ()['channels' ])['htlcs' ] == [])
39353935
3936- txid = l1 .rpc .close (l2 .info ['id' ])['txid' ]
3936+ txid = only_one ( l1 .rpc .close (l2 .info ['id' ])['txids' ])
39373937 bitcoind .generate_block (1 , wait_for_mempool = txid )
39383938
39393939
@@ -4014,7 +4014,7 @@ def test_closing_cpfp(node_factory, bitcoind):
40144014 l1 .rpc .pay (l2 .rpc .invoice (10000000 , 'test' , 'test' )['bolt11' ])
40154015
40164016 # Mutual close
4017- close_txid = l1 .rpc .close (l2 .info ['id' ])['txid' ]
4017+ close_txid = only_one ( l1 .rpc .close (l2 .info ['id' ])['txids' ])
40184018
40194019 l1out = only_one ([o for o in l1 .rpc .listfunds ()['outputs' ] if o != change ])
40204020 assert l1out ['txid' ] == close_txid
@@ -4093,7 +4093,7 @@ def test_anchorspend_using_to_remote(node_factory, bitcoind, anchors):
40934093
40944094 l4 .rpc .disconnect (l2 .info ['id' ], force = True )
40954095 close = l4 .rpc .close (l2 .info ['id' ], 1 )
4096- bitcoind .generate_block (1 , wait_for_mempool = close ['txid' ] )
4096+ bitcoind .generate_block (1 , wait_for_mempool = only_one ( close ['txids' ]) )
40974097 wait_for (lambda : len (l2 .rpc .listfunds ()['outputs' ]) == 1 )
40984098 # Don't need l4 any more
40994099 l4 .stop ()
0 commit comments