We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcb2902 commit b76dbddCopy full SHA for b76dbdd
lightning/src/ln/onion_payment.rs
@@ -367,8 +367,8 @@ pub(super) fn create_recv_pending_htlc_info(
367
let hashed_preimage = PaymentHash(Sha256::hash(&payment_preimage.0).to_byte_array());
368
if hashed_preimage != payment_hash {
369
return Err(InboundHTLCErr {
370
- err_code: 0x4000|22,
371
- err_data: Vec::new(),
+ err_code: 0x4000 | 15,
+ err_data: invalid_payment_err_data(amt_msat, current_height),
372
msg: "Payment preimage didn't match payment hash",
373
});
374
}
0 commit comments