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
lightning: Add a key inside NodeSigner which would be used to encrypt or decrpt the peerstorage and send PeerStorage on every RAA and upon reconnection.
let height = self.best_block.read().unwrap().height;
3002
3013
let mut outbound_scid_alias = 0;
@@ -8100,6 +8111,30 @@ where
8100
8111
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))
8101
8112
}
8102
8113
};
8114
+
8115
+
{
8116
+
let per_peer_state = self.per_peer_state.read().unwrap();
8117
+
let mut peer_state_lock = per_peer_state.get(counterparty_node_id)
8118
+
.ok_or_else(|| {
8119
+
debug_assert!(false);
8120
+
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
8121
+
}).map(|mtx| mtx.lock().unwrap())?;
8122
+
let peer_state = &mut *peer_state_lock;
8123
+
let our_peer_storage = self.get_encrypted_our_peer_storage();
8124
+
8125
+
for context in peer_state.channel_by_id.iter().map(|(_, phase)| phase.context()) {
0 commit comments