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