Skip to content

Commit ef990fa

Browse files
committed
f Account for ChannelManager::new taking current timestamp
1 parent cfc3952 commit ef990fa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/builder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
598598
Arc::clone(&keys_manager),
599599
user_config,
600600
chain_params,
601+
cur_time.as_secs() as u32,
601602
)
602603
}
603604
};
@@ -621,10 +622,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
621622
));
622623
let ephemeral_bytes: [u8; 32] = keys_manager.get_secure_random_bytes();
623624

624-
let cur_time = SystemTime::now()
625-
.duration_since(SystemTime::UNIX_EPOCH)
626-
.map_err(|_| BuildError::InvalidSystemTime)?;
627-
628625
// Initialize the GossipSource
629626
// Use the configured gossip source, if the user set one, otherwise default to P2PNetwork.
630627
let gossip_source_config = gossip_source_config.unwrap_or(&GossipSourceConfig::P2PNetwork);

0 commit comments

Comments
 (0)