File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments