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
Ensure ChannelManager properly handles peer_storage_retrieval.
- Write internal_peer_storage_retreival to verify if we recv correct peer storage.
- Send error if we get invalid peer_storage data.
format!("Invalid PeerStorage received from {}", counterparty_node_id)
8559
+
};
8560
+
8561
+
let encrypted_ops = match EncryptedOurPeerStorage::new(msg.data) {
8562
+
Ok(encrypted_ops) => encrypted_ops,
8563
+
Err(_) => {
8564
+
log_debug!(logger, "{}", err_str());
8565
+
return Err(err);
8566
+
}
8567
+
};
8552
8568
8553
-
log_debug!(logger, "Received unexpected peer_storage_retrieval from {}. This is unusual since we do not yet distribute peer storage. Sending a warning.", log_pubkey!(counterparty_node_id));
8569
+
let decrypted_data = match encrypted_ops.decrypt(&self.node_signer.get_peer_storage_key()) {
0 commit comments