Skip to content

Commit d14446b

Browse files
committed
Return dummy-hop-specific error on blinded-forward underflow
When amount or CLTV validation underflows on a dummy hop, return a dummy-hop-specific error. This avoids misleading logs and makes blinded-path failures easier to debug.
1 parent 27e138c commit d14446b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightning/src/ln/onion_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ pub(super) fn decode_incoming_update_add_htlc_onion<NS: NodeSigner, L: Logger, T
673673
) {
674674
Ok((amt, cltv)) => (amt, cltv),
675675
Err(()) => {
676-
return encode_relay_error("Underflow calculating outbound amount or cltv value for blinded forward",
676+
return encode_relay_error("Underflow calculating outbound amount or cltv value for dummy hop",
677677
LocalHTLCFailureReason::InvalidOnionBlinding, shared_secret.secret_bytes(), None, &[0; 32]);
678678
}
679679
};

0 commit comments

Comments
 (0)