Rusty Russell
b3b9d93fb0
pytest: fix flake in test_update_fee_reconnect.
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>
```
2025-05-14 12:19:10 +09:30
..
2024-09-05 15:49:03 -07:00
2025-01-09 11:15:05 +01:00
2023-07-09 13:02:10 +09:30
2025-05-09 13:03:51 -05:00
2025-05-13 19:11:27 +09:30
2025-02-11 08:40:29 -06:00
2023-07-10 14:51:11 +09:30
2025-05-02 13:57:04 -07:00
2025-05-13 15:00:50 +09:30
2025-05-02 13:39:33 -07:00
2025-05-02 13:39:33 -07:00
2025-05-14 12:19:10 +09:30
2025-05-02 13:39:33 -07:00
2023-01-04 13:29:46 +10:30
2024-06-18 16:53:32 -07:00
2024-11-19 09:05:55 +10:30
2023-06-21 14:57:34 +09:30
2024-11-06 13:48:12 +10:30
2025-05-02 13:59:13 -07:00