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