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;
2918
2929
let mut outbound_scid_alias = 0;
@@ -7862,6 +7873,30 @@ where
7862
7873
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))
7863
7874
}
7864
7875
};
7876
+
7877
+
{
7878
+
let per_peer_state = self.per_peer_state.read().unwrap();
7879
+
let mut peer_state_lock = per_peer_state.get(counterparty_node_id)
7880
+
.ok_or_else(|| {
7881
+
debug_assert!(false);
7882
+
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
7883
+
}).map(|mtx| mtx.lock().unwrap())?;
7884
+
let peer_state = &mut *peer_state_lock;
7885
+
let our_peer_storage = self.get_encrypted_our_peer_storage();
7886
+
7887
+
for context in peer_state.channel_by_id.iter().map(|(_, phase)| phase.context()) {
0 commit comments