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
Previously, we would regenerate this class of txn twice due to
block-rescan triggered by new watching outputs registered.
This commmit doesn't change behavior, it only tweaks TestBroadcaster
to ensure we modify cleanly tests anticipating next commit
refactor.
// ChannelManager: local commmitment + local HTLC-timeout (2)
2341
-
// ChannelMonitor: bumped justice tx (4), after one increase, bumps on HTLC aren't generated not being substantial anymore
2342
-
// ChannelMonito r: local commitment + local HTLC-timeout (14)
2343
-
2344
-
assert_eq!(node_txn[0], node_txn[5]);
2345
-
assert_eq!(node_txn[0], node_txn[7]);
2346
-
assert_eq!(node_txn[0], node_txn[9]);
2347
-
assert_eq!(node_txn[0], node_txn[13]);
2348
-
assert_eq!(node_txn[0], node_txn[15]);
2349
-
assert_eq!(node_txn[0], node_txn[17]);
2350
-
assert_eq!(node_txn[0], node_txn[19]);
2351
-
2352
-
assert_eq!(node_txn[1], node_txn[6]);
2353
-
assert_eq!(node_txn[1], node_txn[8]);
2354
-
assert_eq!(node_txn[1], node_txn[10]);
2355
-
assert_eq!(node_txn[1], node_txn[14]);
2356
-
assert_eq!(node_txn[1], node_txn[16]);
2357
-
assert_eq!(node_txn[1], node_txn[18]);
2358
-
assert_eq!(node_txn[1], node_txn[20]);
2359
-
2360
-
2361
-
// Check the pair local commitment and HTLC-timeout broadcast due to HTLC expiration and present 8 times (rebroadcast at every block from 200 to 206)
2341
+
// ChannelMonitor: bumped justice tx, after one increase, bumps on HTLC aren't generated not being substantial anymore, bump on revoked to_local isn't generated due to more room for expiration (2)
2342
+
// ChannelMonitor: local commitment + local HTLC-timeout (2)
2343
+
2344
+
// Check the pair local commitment and HTLC-timeout broadcast due to HTLC expiration
let htlc_success_txn:Vec<_> = nodes[2].tx_broadcaster.txn_broadcasted.lock().unwrap().clone();
4625
-
assert_eq!(htlc_success_txn.len(),7);
4599
+
assert_eq!(htlc_success_txn.len(),5);// ChannelMonitor: HTLC-Success txn (*2 due to 2-HTLC outputs), ChannelManager: local commitment tx + HTLC-Success txn (*2 due to 2-HTLC outputs)
0 commit comments