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