Allow overshooting final cltv_expiry
authorAlec Chen <alecchendev@gmail.com>
Tue, 7 Mar 2023 01:33:45 +0000 (19:33 -0600)
committerAlec Chen <alecchendev@gmail.com>
Tue, 28 Mar 2023 22:21:09 +0000 (17:21 -0500)
commitee57738ca8564a31d9f919bd4b642d1449bd61a1
tree7718f9e27fcd9ad8537dde047f6cc66b1cc7de52
parentf3d8e583744653d701495e21124216a0dc4a6ef6
Allow overshooting final cltv_expiry

Final nodes previously had stricter requirements on HTLC contents
matching onion value compared to intermediate nodes. This allowed
for probing, i.e. the last intermediate node could overshoot the
value by a small amount and conclude from the acceptance or rejection
of the HTLC whether the next node was the destination. This also
applies to the msat amount, however this change was already present.
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_route_tests.rs