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: fuzz/src/full_stack.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -903,6 +903,6 @@ mod tests {
903
903
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030200000000000000000000000000000000000000000000000000000000000000 with 1 adds, 0 fulfills, 0 fails for channel 3900000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&3));// 7
904
904
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030000000000000000000000000000000000000000000000000000000000000000 with 0 adds, 1 fulfills, 0 fails for channel 3d00000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&1));// 8
905
905
assert_eq!(log_entries.get(&("lightning::ln::peer_handler".to_string(),"Handling UpdateHTLCs event in peer_handler for node 030000000000000000000000000000000000000000000000000000000000000000 with 0 adds, 0 fulfills, 1 fails for channel 3d00000000000000000000000000000000000000000000000000000000000000".to_string())),Some(&2));// 9
906
-
assert_eq!(log_entries.get(&("lightning::ln::channelmonitor".to_string(),"Input spending remote commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
906
+
assert_eq!(log_entries.get(&("lightning::ln::channelmonitor".to_string(),"Input spending counterparty commitment tx (00000000000000000000000000000000000000000000000000000000000000a1:0) in 0000000000000000000000000000000000000000000000000000000000000018 resolves outbound HTLC with payment hash ff00000000000000000000000000000000000000000000000000000000000000 with timeout".to_string())),Some(&1));// 10
for this_htlc inlocal_commitment_tx.per_htlc.iter(){
105
+
for this_htlc inholder_commitment_tx.per_htlc.iter(){
106
106
if this_htlc.0.transaction_output_index.is_some(){
107
-
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid,local_commitment_tx.feerate_per_kw,local_csv,&this_htlc.0,&local_commitment_tx.local_keys.a_delayed_payment_key,&local_commitment_tx.local_keys.revocation_key);
107
+
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid,holder_commitment_tx.feerate_per_kw,holder_csv,&this_htlc.0,&holder_commitment_tx.keys.broadcaster_delayed_payment_key,&holder_commitment_tx.keys.revocation_key);
108
108
109
-
let htlc_redeemscript = chan_utils::get_htlc_redeemscript(&this_htlc.0,&local_commitment_tx.local_keys);
109
+
let htlc_redeemscript = chan_utils::get_htlc_redeemscript(&this_htlc.0,&holder_commitment_tx.keys);
110
110
111
111
let sighash = hash_to_message!(&bip143::SigHashCache::new(&htlc_tx).signature_hash(0,&htlc_redeemscript, this_htlc.0.amount_msat / 1000,SigHashType::All)[..]);
0 commit comments