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() {
557557 open_channel. shutdown_scriptpubkey = Present ( Builder :: new ( ) . push_int ( 0 )
558558 . push_slice ( & [ 0 , 0 ] )
559559 . 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) ;
561561
562562 let events = nodes[ 0 ] . node . get_and_clear_pending_msg_events ( ) ;
563563 assert_eq ! ( events. len( ) , 1 ) ;
564564 match events[ 0 ] {
565565 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( ) ) ;
567567 assert_eq ! ( msg. data, "Peer is signaling upfront_shutdown but has provided an unacceptable scriptpubkey format: Script(OP_0 OP_PUSHBYTES_2 0000)" ) ;
568568 } ,
569569 _ => panic ! ( "Unexpected event" ) ,
You can’t perform that action at this time.
0 commit comments