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
let payment_preimage = match inbound_payment::verify(payment_hash, payment_data.clone(),self.highest_seen_timestamp.load(Ordering::Acquire)asu64,&self.inbound_payment_key,&self.logger){
3198
+
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){
3199
3199
Ok(payment_preimage) => payment_preimage,
3200
3200
Err(()) => {
3201
3201
fail_htlc!(claimable_htlc);
@@ -7312,15 +7312,15 @@ mod tests {
7312
7312
// payment verification fails as expected.
7313
7313
letmut bad_payment_hash = payment_hash.clone();
7314
7314
bad_payment_hash.0[0] += 1;
7315
-
match inbound_payment::verify(bad_payment_hash, payment_data.clone(), nodes[0].node.highest_seen_timestamp.load(Ordering::Acquire)asu64,&nodes[0].node.inbound_payment_key,&nodes[0].logger){
7315
+
match inbound_payment::verify(bad_payment_hash,&payment_data, nodes[0].node.highest_seen_timestamp.load(Ordering::Acquire)asu64,&nodes[0].node.inbound_payment_key,&nodes[0].logger){
7316
7316
Ok(_) => panic!("Unexpected ok"),
7317
7317
Err(()) => {
7318
7318
nodes[0].logger.assert_log_contains("lightning::ln::inbound_payment".to_string(),"Failing HTLC with user-generated payment_hash".to_string(),1);
7319
7319
}
7320
7320
}
7321
7321
7322
7322
// Check that using the original payment hash succeeds.
0 commit comments