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){
3273
+
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){
3274
3274
Ok(payment_preimage) => payment_preimage,
3275
3275
Err(()) => {
3276
3276
fail_htlc!(claimable_htlc);
@@ -7110,15 +7110,15 @@ mod tests {
7110
7110
// payment verification fails as expected.
7111
7111
letmut bad_payment_hash = payment_hash.clone();
7112
7112
bad_payment_hash.0[0] += 1;
7113
-
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){
7113
+
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){
7114
7114
Ok(_) => panic!("Unexpected ok"),
7115
7115
Err(()) => {
7116
7116
nodes[0].logger.assert_log_contains("lightning::ln::channelmanager::inbound_payment".to_string(),"Failing HTLC with user-generated payment_hash".to_string(),1);
7117
7117
}
7118
7118
}
7119
7119
7120
7120
// Check that using the original payment hash succeeds.
0 commit comments