Skip to content

Commit 275f3a2

Browse files
committed
fixup: Distribute PeerStorage from ChainMonitor
1 parent c9e29c7 commit 275f3a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,9 @@ where C::Target: chain::Filter,
704704

705705
fn send_peer_storage(&self, their_node_id: PublicKey) {
706706
// TODO: Serialize `ChannelMonitor`s inside `our_peer_storage`.
707-
707+
#[cfg(fuzzing)]
708+
let random_bytes = [42u8; 32];
709+
#[cfg(not(fuzzing))]
708710
let random_bytes = self.entropy_source.get_secure_random_bytes();
709711
let serialised_channels = Vec::new();
710712
let our_peer_storage = DecryptedOurPeerStorage::new(serialised_channels);

0 commit comments

Comments
 (0)