From: Matt Corallo Date: Thu, 1 Dec 2022 20:25:33 +0000 (+0000) Subject: Drop the stale `final_expiry_too_soon` error code X-Git-Tag: v0.0.113~13^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=5e7e3d57bf00c75a2be2b5475d39a8a4f6ec1453;p=rust-lightning 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. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 7fed7b2f4..36886645a 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -2042,10 +2042,13 @@ impl ChannelManager