We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ChannelManager::new
1 parent ef3802d commit c3ec667Copy full SHA for c3ec667
1 file changed
src/builder.rs
@@ -598,6 +598,7 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
598
Arc::clone(&keys_manager),
599
user_config,
600
chain_params,
601
+ cur_time.as_secs() as u32,
602
)
603
}
604
};
@@ -621,10 +622,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
621
622
));
623
let ephemeral_bytes: [u8; 32] = keys_manager.get_secure_random_bytes();
624
- let cur_time = SystemTime::now()
625
- .duration_since(SystemTime::UNIX_EPOCH)
626
- .map_err(|_| BuildError::InvalidSystemTime)?;
627
-
628
// Initialize the GossipSource
629
// Use the configured gossip source, if the user set one, otherwise default to P2PNetwork.
630
let gossip_source_config = gossip_source_config.unwrap_or(&GossipSourceConfig::P2PNetwork);
0 commit comments