]> git.bitcoin.ninja Git - rust-lightning/commit
Fix `three_hop_blinded_path_success` with different randomization
authorMatt Corallo <git@bluematt.me>
Tue, 30 Jan 2024 23:54:56 +0000 (23:54 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 Jan 2024 23:56:12 +0000 (23:56 +0000)
commit37162273597c93f33ade58a52ec966762cf00eb6
treea8f207a552f81fdd04b92372b8828725458e3889
parenta5ba3391f8dd61515385bfcf3d946a1c6b731f0a
Fix `three_hop_blinded_path_success` with different randomization

In `three_hop_blinded_path_success`, the nodes in the test ended up
at radically different block heights after channel opening. At that
point, if the CLTV randomization is done slightly different the
test payment may fail, which we fix here by ensuring all nodes are
at the same height before we go to send a payment.
lightning/src/ln/blinded_payment_tests.rs