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;
3125
3138
let mut outbound_scid_alias = 0;
@@ -8328,6 +8341,30 @@ where
8328
8341
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))
8329
8342
}
8330
8343
};
8344
+
8345
+
{
8346
+
let per_peer_state = self.per_peer_state.read().unwrap();
8347
+
let mut peer_state_lock = per_peer_state.get(counterparty_node_id)
8348
+
.ok_or_else(|| {
8349
+
debug_assert!(false);
8350
+
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
8351
+
}).map(|mtx| mtx.lock().unwrap())?;
8352
+
let peer_state = &mut *peer_state_lock;
8353
+
let our_peer_storage = self.get_encrypted_our_peer_storage();
8354
+
8355
+
for context in peer_state.channel_by_id.iter().map(|(_, phase)| phase.context()) {
0 commit comments