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)
7638
7655
.ok_or_else(|| {
7639
7656
debug_assert!(false);
7640
-
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
7657
+
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)
7641
7658
})?;
7642
7659
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
7643
7660
let peer_state = &mut *peer_state_lock;
@@ -7696,7 +7713,7 @@ where
7696
7713
"Got an update_add_htlc message for an unfunded channel!".into())), chan_phase_entry);
7697
7714
}
7698
7715
},
7699
-
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))
7716
+
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