File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -557,13 +557,13 @@ fn test_invalid_upfront_shutdown_script() {
557
557
open_channel. shutdown_scriptpubkey = Present ( Builder :: new ( ) . push_int ( 0 )
558
558
. push_slice ( & [ 0 , 0 ] )
559
559
. into_script ( ) ) ;
560
- nodes[ 0 ] . node . handle_open_channel ( & nodes[ 0 ] . node . get_our_node_id ( ) , channelmanager:: provided_init_features ( ) , & open_channel) ;
560
+ nodes[ 0 ] . node . handle_open_channel ( & nodes[ 1 ] . node . get_our_node_id ( ) , channelmanager:: provided_init_features ( ) , & open_channel) ;
561
561
562
562
let events = nodes[ 0 ] . node . get_and_clear_pending_msg_events ( ) ;
563
563
assert_eq ! ( events. len( ) , 1 ) ;
564
564
match events[ 0 ] {
565
565
MessageSendEvent :: HandleError { action : ErrorAction :: SendErrorMessage { ref msg } , node_id } => {
566
- assert_eq ! ( node_id, nodes[ 0 ] . node. get_our_node_id( ) ) ;
566
+ assert_eq ! ( node_id, nodes[ 1 ] . node. get_our_node_id( ) ) ;
567
567
assert_eq ! ( msg. data, "Peer is signaling upfront_shutdown but has provided an unacceptable scriptpubkey format: Script(OP_0 OP_PUSHBYTES_2 0000)" ) ;
568
568
} ,
569
569
_ => panic ! ( "Unexpected event" ) ,
You can’t perform that action at this time.
0 commit comments