]> git.bitcoin.ninja Git - rust-lightning/commit
Drop the stale `final_expiry_too_soon` error code
authorMatt Corallo <git@bluematt.me>
Thu, 1 Dec 2022 20:25:33 +0000 (20:25 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Dec 2022 20:00:44 +0000 (20:00 +0000)
commit5e7e3d57bf00c75a2be2b5475d39a8a4f6ec1453
treebb775efcfb4ed7f370ea671de5730354b69db8d8
parent4011db57f7e0023da0fe041cfacf09fc32b18fcd
Drop the stale `final_expiry_too_soon` error code

This replaces `final_expiry_too_soon` with
`incorrect_or_unknown_payment` as was done in
https://github.com/lightning/bolts/pull/608. Note that the
rationale for this (that it may expose whether you are the final
recipient for the payment or not) does not currently apply to us -
we don't apply different final CLTV values to different payments.
However, we might in the future, and this will make us slightly
more consistent with other nodes.
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_route_tests.rs