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)
6781
6798
.ok_or_else(|| {
6782
6799
debug_assert!(false);
6783
-
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
6800
+
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)
6784
6801
})?;
6785
6802
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
6786
6803
let peer_state = &mut *peer_state_lock;
@@ -6838,7 +6855,7 @@ where
6838
6855
"Got an update_add_htlc message for an unfunded channel!".into())), chan_phase_entry);
6839
6856
}
6840
6857
},
6841
-
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))
6858
+
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