mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
fix: avoid a confusing log when fastsync start (#1720)
This commit is contained in:
parent
d756da062a
commit
4f462cdfdc
1 changed files with 13 additions and 0 deletions
|
@ -123,6 +123,19 @@ impl StateSync {
|
||||||
}
|
}
|
||||||
Err(e) => self.sync_state.set_sync_error(Error::P2P(e)),
|
Err(e) => self.sync_state.set_sync_error(Error::P2P(e)),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// to avoid the confusing log,
|
||||||
|
// update the final HeaderSync state mainly for 'current_height'
|
||||||
|
{
|
||||||
|
let status = self.sync_state.status();
|
||||||
|
if let SyncStatus::HeaderSync { .. } = status {
|
||||||
|
self.sync_state.update(SyncStatus::HeaderSync {
|
||||||
|
current_height: header_head.height,
|
||||||
|
highest_height,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self.sync_state.update(SyncStatus::TxHashsetDownload);
|
self.sync_state.update(SyncStatus::TxHashsetDownload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue