You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3182,16 +3182,15 @@ where
3182
3182
match claimable_htlc.onion_payload{
3183
3183
OnionPayload::Invoice{ .. } => {
3184
3184
let payment_data = payment_data.unwrap();
3185
-
let payment_preimage = match inbound_payment::verify(payment_hash,&payment_data,self.highest_seen_timestamp.load(Ordering::Acquire)asu64,&self.inbound_payment_key,&self.logger){
3186
-
Ok(payment_preimage) => payment_preimage,
3185
+
let(payment_preimage, min_final_cltv_expiry_delta) = match inbound_payment::verify(payment_hash,&payment_data,self.highest_seen_timestamp.load(Ordering::Acquire)asu64,&self.inbound_payment_key,&self.logger){
3186
+
Ok(result) => result,
3187
3187
Err(()) => {
3188
3188
log_trace!(self.logger,"Failing new HTLC with payment_hash {} as payment verification failed", log_bytes!(payment_hash.0));
None => match inbound_payment::verify(payment_hash,&hop_data,0,&expanded_inbound_key,&args.logger){
7396
-
Ok(payment_preimage) => payment_preimage,
7395
+
Ok((payment_preimage, _)) => payment_preimage,
7397
7396
Err(()) => {
7398
7397
log_error!(args.logger,"Failed to read claimable payment data for HTLC with payment hash {} - was not a pending inbound payment and didn't match our payment key", log_bytes!(payment_hash.0));
0 commit comments