Skip to content

Commit 6dcb7f9

Browse files
committed
fix: put funding_txid in the right pace to call it in wait for tx
1 parent eb09381 commit 6dcb7f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bindings/python/src/ldk_node/test_ldk_node.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,13 @@ def test_channel_full_cycle(self):
188188

189189
channel_pending_event_1 = expect_event(node_1, Event.CHANNEL_PENDING)
190190
channel_pending_event_2 = expect_event(node_2, Event.CHANNEL_PENDING)
191-
191+
funding_txid = channel_pending_event_1.funding_txo.txid
192192
wait_for_tx(esplora_endpoint, funding_txid)
193193
mine_and_wait(esplora_endpoint, 6)
194194

195195
node_1.sync_wallets()
196196
node_2.sync_wallets()
197197

198-
funding_txid = channel_pending_event_1.funding_txo.txid
199198
channel_ready_event_1 = expect_event(node_1, Event.CHANNEL_READY)
200199
print("funding_txo:", funding_txid)
201200

0 commit comments

Comments
 (0)