File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5708,7 +5708,13 @@ mod tests {
5708
5708
get_announce_close_broadcast_events ( & nodes, 3 , 4 ) ;
5709
5709
assert_eq ! ( nodes[ 3 ] . node. list_channels( ) . len( ) , 0 ) ;
5710
5710
assert_eq ! ( nodes[ 4 ] . node. list_channels( ) . len( ) , 0 ) ;
5711
+ }
5712
+
5713
+ #[ test]
5714
+ fn test_justice_tx ( ) {
5715
+ // Test justice txn built on revoked HTLC-Success tx, against both sides
5711
5716
5717
+ let nodes = create_network ( 2 ) ;
5712
5718
// Create some new channels:
5713
5719
let chan_5 = create_announced_chan_between_nodes ( & nodes, 0 , 1 ) ;
5714
5720
@@ -5748,6 +5754,9 @@ mod tests {
5748
5754
}
5749
5755
get_announce_close_broadcast_events ( & nodes, 0 , 1 ) ;
5750
5756
5757
+ assert_eq ! ( nodes[ 0 ] . node. list_channels( ) . len( ) , 0 ) ;
5758
+ assert_eq ! ( nodes[ 1 ] . node. list_channels( ) . len( ) , 0 ) ;
5759
+
5751
5760
// We test justice_tx build by A on B's revoked HTLC-Success tx
5752
5761
// Create some new channels:
5753
5762
let chan_6 = create_announced_chan_between_nodes ( & nodes, 0 , 1 ) ;
You can’t perform that action at this time.
0 commit comments