Просмотр исходного кода

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

aggstam 4 лет назад
Родитель
Сommit
6ab23bda5e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/darkfid/src/main.rs

+ 1 - 1
bin/darkfid/src/main.rs

@@ -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...");