Skip to content

Commit

Permalink
fix: the restart of state sync doesn't work sometimes (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyyu authored and ignopeverell committed Mar 18, 2019
1 parent dc59f67 commit 52b5dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/src/grin/sync/state_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 52b5dc0

Please sign in to comment.