From 52b5dc0e8d0676affffb73f6f33b36c78dab2d69 Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Tue, 19 Mar 2019 01:44:51 +0800 Subject: [PATCH] fix: the restart of state sync doesn't work sometimes (#2687) --- servers/src/grin/sync/state_sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/src/grin/sync/state_sync.rs b/servers/src/grin/sync/state_sync.rs index 887c29d447..701669d8d1 100644 --- a/servers/src/grin/sync/state_sync.rs +++ b/servers/src/grin/sync/state_sync.rs @@ -113,7 +113,7 @@ impl StateSync { } // run fast sync if applicable, normally only run one-time, except restart in error - if header_head.height == highest_height { + if sync_need_restart || header_head.height == highest_height { let (go, download_timeout) = self.state_sync_due(); if let SyncStatus::TxHashsetDownload { .. } = self.sync_state.status() {