You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
6960
6977
.ok_or_else(|| {
6961
6978
debug_assert!(false);
6962
-
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
6979
+
MsgHandleErrInternal::from_update_add_htlc(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id, msg.payment_hash)
6963
6980
})?;
6964
6981
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
6965
6982
let peer_state = &mut *peer_state_lock;
@@ -7018,7 +7035,7 @@ where
7018
7035
"Got an update_add_htlc message for an unfunded channel!".into())), chan_phase_entry);
7019
7036
}
7020
7037
},
7021
-
hash_map::Entry::Vacant(_) => return Err(MsgHandleErrInternal::send_err_msg_no_close(format!("Got a message for a channel from the wrong node! No such channel for the passed counterparty_node_id {}", counterparty_node_id), msg.channel_id))
7038
+
hash_map::Entry::Vacant(_) => return Err(MsgHandleErrInternal::from_update_add_htlc(format!("Got a message for a channel from the wrong node! No such channel for the passed counterparty_node_id {}", counterparty_node_id), msg.channel_id, msg.payment_hash))
0 commit comments