- assert_eq!(node_txn.len(), 29); // ChannelManager : 2, ChannelMontitor: 8 (1 standard revoked output, 2 revocation htlc tx, 1 local commitment tx + 1 htlc timeout tx) * 2 (block-rescan) + 5 * (1 local commitment tx + 1 htlc timeout tx)
-
- assert_eq!(node_txn[0], node_txn[7]);
- assert_eq!(node_txn[1], node_txn[8]);
- assert_eq!(node_txn[2], node_txn[9]);
- assert_eq!(node_txn[3], node_txn[10]);
- assert_eq!(node_txn[4], node_txn[11]);
- assert_eq!(node_txn[3], node_txn[5]); //local commitment tx + htlc timeout tx broadcasted by ChannelManger
+ assert_eq!(node_txn.len(), 26);
+ // ChannelMonitor: justice tx revoked offered htlc, justice tx revoked received htlc, justice tx revoked to_local (3)
+ // ChannelManager: local commmitment + local HTLC-timeout (2)
+ // ChannelMonitor: bumped justice tx * 7 (7), after one increase, bumps on HTLC aren't generated not being substantial anymore
+ // ChannelMonitor: local commitment + local HTLC-timeout (14)
+
+
+ assert_eq!(node_txn[3], node_txn[5]);
+ assert_eq!(node_txn[3], node_txn[7]);
+ assert_eq!(node_txn[3], node_txn[9]);
+ assert_eq!(node_txn[3], node_txn[14]);
+ assert_eq!(node_txn[3], node_txn[17]);
+ assert_eq!(node_txn[3], node_txn[20]);
+ assert_eq!(node_txn[3], node_txn[23]);
+