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;
3039
3050
let mut outbound_scid_alias = 0;
@@ -8138,6 +8149,30 @@ where
8138
8149
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))
8139
8150
}
8140
8151
};
8152
+
8153
+
{
8154
+
let per_peer_state = self.per_peer_state.read().unwrap();
8155
+
let mut peer_state_lock = per_peer_state.get(counterparty_node_id)
8156
+
.ok_or_else(|| {
8157
+
debug_assert!(false);
8158
+
MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id), msg.channel_id)
8159
+
}).map(|mtx| mtx.lock().unwrap())?;
8160
+
let peer_state = &mut *peer_state_lock;
8161
+
let our_peer_storage = self.get_encrypted_our_peer_storage();
8162
+
8163
+
for context in peer_state.channel_by_id.iter().map(|(_, phase)| phase.context()) {
0 commit comments