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>(
598
598
Arc :: clone ( & keys_manager) ,
599
599
user_config,
600
600
chain_params,
601
+ cur_time. as_secs ( ) as u32 ,
601
602
)
602
603
}
603
604
} ;
@@ -621,10 +622,6 @@ fn build_with_store_internal<K: KVStore + Sync + Send + 'static>(
621
622
) ) ;
622
623
let ephemeral_bytes: [ u8 ; 32 ] = keys_manager. get_secure_random_bytes ( ) ;
623
624
624
- let cur_time = SystemTime :: now ( )
625
- . duration_since ( SystemTime :: UNIX_EPOCH )
626
- . map_err ( |_| BuildError :: InvalidSystemTime ) ?;
627
-
628
625
// Initialize the GossipSource
629
626
// Use the configured gossip source, if the user set one, otherwise default to P2PNetwork.
630
627
let gossip_source_config = gossip_source_config. unwrap_or ( & GossipSourceConfig :: P2PNetwork ) ;
You can’t perform that action at this time.
0 commit comments