bin/darkfid/main.rs: clock check to be executed only by nodes participating in consensus

This commit is contained in:
aggstam
2022-06-10 15:21:26 +03:00
parent 0d8fb66e53
commit 6ab23bda5e

View File

@@ -201,7 +201,7 @@ impl Darkfid {
async_daemonize!(realmain);
async fn realmain(args: Args, ex: Arc<Executor<'_>>) -> Result<()> {
if args.clock_sync {
if args.consensus && args.clock_sync {
// We verify that the system clock is valid before initializing
if (check_clock().await).is_err() {
error!("System clock is invalid, terminating...");