From 6ab23bda5ea40ba369eec4a9d8fe4f695c7f7014 Mon Sep 17 00:00:00 2001 From: aggstam Date: Fri, 10 Jun 2022 15:21:26 +0300 Subject: [PATCH] bin/darkfid/main.rs: clock check to be executed only by nodes participating in consensus --- bin/darkfid/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/darkfid/src/main.rs b/bin/darkfid/src/main.rs index e2b43aff2..a328aa515 100644 --- a/bin/darkfid/src/main.rs +++ b/bin/darkfid/src/main.rs @@ -201,7 +201,7 @@ impl Darkfid { async_daemonize!(realmain); async fn realmain(args: Args, ex: Arc>) -> 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...");