]> git.bitcoin.ninja Git - rust-lightning/commit
Don't rely on route-fetching rand in `blinded_path_with_custom_tlv`
authorMatt Corallo <git@bluematt.me>
Sun, 8 Sep 2024 20:13:40 +0000 (20:13 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 11 Sep 2024 20:01:43 +0000 (20:01 +0000)
commit6e340c43de50cdba88286d3fce1f65f57b1024b2
tree6a72bde8ffca3a687581a6293610b24b21aa7695
parent758747ac9f1a19ea22858be714c3f6e5b9658912
Don't rely on route-fetching rand in `blinded_path_with_custom_tlv`

`blinded_path_with_custom_tlv` indirectly relied on route CLTV
randomization when sending because nodes were at substantially
different block heights after setup. Instead we make sure all nodes
are at the same height which makes the test more robust.
lightning/src/ln/max_payment_path_len_tests.rs