mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-20 13:27:36 +02:00
If we grab l2's scratch_txid too early, it might not be the one which goes in the mempool:
```
2025-05-12T05:15:44.3947957Z def test_update_fee_reconnect(node_factory, bitcoind):
...
2025-05-12T05:15:44.3962867Z # Now shutdown cleanly.
2025-05-12T05:15:44.3963253Z l1.rpc.close(chan)
2025-05-12T05:15:44.3963591Z
2025-05-12T05:15:44.3963905Z # And should put closing into mempool.
2025-05-12T05:15:44.3964671Z l1.wait_for_channel_onchain(l2.info['id'])
2025-05-12T05:15:44.3965175Z > l2.wait_for_channel_onchain(l1.info['id'])
2025-05-12T05:15:44.3965496Z
2025-05-12T05:15:44.3965659Z tests/test_connection.py:2634:
...
2025-05-12T05:15:44.3966616Z contrib/pyln-testing/pyln/testing/utils.py:1216: in wait_for_channel_onchain
2025-05-12T05:15:44.3967080Z wait_for(lambda: txid in self.bitcoin.rpc.getrawmempool())
2025-05-12T05:15:44.3967429Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2025-05-12T05:15:44.3967631Z
2025-05-12T05:15:44.3967888Z success = <function LightningNode.wait_for_channel_onchain.<locals>.<lambda> at 0x7f0562d7f0a0>
2025-05-12T05:15:44.3968299Z timeout = 180
2025-05-12T05:15:44.3968408Z
2025-05-12T05:15:44.3968515Z def wait_for(success, timeout=TIMEOUT):
2025-05-12T05:15:44.3968805Z start_time = time.time()
2025-05-12T05:15:44.3969041Z interval = 0.25
2025-05-12T05:15:44.3969251Z while not success():
2025-05-12T05:15:44.3969510Z time_left = start_time + timeout - time.time()
2025-05-12T05:15:44.3969794Z if time_left <= 0:
2025-05-12T05:15:44.3970278Z > raise ValueError("Timeout while waiting for {}".format(success))
2025-05-12T05:15:44.3970894Z E ValueError: Timeout while waiting for <function LightningNode.wait_for_channel_onchain.<locals>.<lambda> at 0x7f0562d7f0a0>
```
|
||
|---|---|---|
| .. | ||
| cln-tracer | ||
| docker | ||
| init | ||
| keys | ||
| msggen | ||
| plugins | ||
| pylightning | ||
| pyln-client | ||
| pyln-grpc-proto | ||
| pyln-proto | ||
| pyln-spec | ||
| pyln-testing | ||
| reprobuild | ||
| sanitizer_suppressions | ||
| bootstrap-node.sh | ||
| cl-repro.sh | ||
| clang-coverage-report.sh | ||
| config-example | ||
| giantnode.py | ||
| lightning-cli.bash-completion | ||
| short_channel_id-to-txid.sh | ||
| startup_regtest.sh | ||