mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
fix: the restart of state sync doesn't work sometimes (#2687)
This commit is contained in:
parent
dc59f67c7b
commit
52b5dc0e8d
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue