Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the restart of state sync doesn't work sometimes #2687

Merged
merged 1 commit into from Mar 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion servers/src/grin/sync/state_sync.rs
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