From 5e7e3d57bf00c75a2be2b5475d39a8a4f6ec1453 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 1 Dec 2022 20:25:33 +0000 Subject: [PATCH] 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 | 9 ++++++--- lightning/src/ln/onion_route_tests.rs | 11 +++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) 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