File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1445,12 +1445,14 @@ impl ChannelManager {
1445
1445
match channel_state. by_id . get_mut ( & msg. temporary_channel_id ) {
1446
1446
Some ( chan) => {
1447
1447
if chan. get_their_node_id ( ) != * their_node_id {
1448
- return Err ( HandleError { err : "Got a message for a channel from the wrong node!" , action : None } ) ;
1448
+ //TODO: see issue #153, need a consistent behavior on obnoxious behavior from random node
1449
+ return Err ( MsgHandleErrInternal :: send_err_msg_no_close ( "Got a message for a channel from the wrong node!" , msg. temporary_channel_id ) ) ;
1449
1450
}
1450
1451
chan. accept_channel ( & msg) . map_err ( |e| MsgHandleErrInternal :: from_maybe_close ( e) ) ?;
1451
1452
( chan. get_value_satoshis ( ) , chan. get_funding_redeemscript ( ) . to_v0_p2wsh ( ) , chan. get_user_id ( ) )
1452
1453
} ,
1453
- None => return Err ( HandleError { err : "Failed to find corresponding channel" , action : None } )
1454
+ //TODO: same as above
1455
+ None => return Err ( MsgHandleErrInternal :: send_err_msg_no_close ( "Failed to find corresponding channel" , msg. temporary_channel_id ) )
1454
1456
}
1455
1457
} ;
1456
1458
let mut pending_events = self . pending_events . lock ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments