Skip to content

Commit 8906d0c

Browse files
Merge pull request #4252 from carlaKC/4226-followups
Minor followups for 4226
2 parents dd127a8 + 2a53ffd commit 8906d0c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lightning/src/ln/onion_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ where
649649
) {
650650
Ok((amt, cltv)) => (amt, cltv),
651651
Err(()) => {
652-
return encode_relay_error("Trampoline blinded forward amt or CLTV values exceeded the outer onion's",
652+
return encode_relay_error("Underflow calculating outbound amount or cltv value for blinded trampoline forward",
653653
LocalHTLCFailureReason::InvalidOnionBlinding, outer_shared_secret.secret_bytes(), Some(trampoline_shared_secret.secret_bytes()), &[0; 32]);
654654
}
655655
};

lightning/src/ln/onion_utils.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,9 @@ impl_from_u16_for_htlc_reason!(
18001800
InvalidOnionPayload,
18011801
MPPTimeout,
18021802
InvalidOnionBlinding,
1803+
TemporaryTrampolineFailure,
1804+
TrampolineFeeOrExpiryInsufficient,
1805+
UnknownNextTrampoline,
18031806
]
18041807
);
18051808

0 commit comments

Comments
 (0)