|
@@ -614,7 +614,7 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
|
|
|
func (s *Syncer) loadSyncStatus() {
|
|
func (s *Syncer) loadSyncStatus() {
|
|
|
var progress syncProgress
|
|
var progress syncProgress
|
|
|
|
|
|
|
|
- if status := rawdb.ReadSanpshotSyncStatus(s.db); status != nil {
|
|
|
|
|
|
|
+ if status := rawdb.ReadSnapshotSyncStatus(s.db); status != nil {
|
|
|
if err := json.Unmarshal(status, &progress); err != nil {
|
|
if err := json.Unmarshal(status, &progress); err != nil {
|
|
|
log.Error("Failed to decode snap sync status", "err", err)
|
|
log.Error("Failed to decode snap sync status", "err", err)
|
|
|
} else {
|
|
} else {
|