Skip to content

Commit

Permalink
f - remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jkczyz committed Jul 17, 2024
1 parent 352b1bf commit f774e79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10629,16 +10629,16 @@ where
_ => return ResponseInstruction::NoResponse,
};

let (invoice, payment_id) = match payer_data {
let payment_id = match payer_data {
Some((payment_id, nonce)) => {
if invoice.verify_using_payer_data(payment_id, nonce, expanded_key, secp_ctx) {
(invoice, payment_id)
payment_id
} else {
return ResponseInstruction::NoResponse;
}
},
None => match invoice.verify(expanded_key, secp_ctx) {
Ok(payment_id) => (invoice, payment_id),
Ok(payment_id) => payment_id,
Err(()) => return ResponseInstruction::NoResponse,
},
};
Expand Down

0 comments on commit f774e79

Please sign in to comment.