Snapshots: initial sync fix (#3750)

This commit is contained in:
Alex Sharov 2022-03-22 10:33:15 +07:00 committed by GitHub
parent 4cf4c1bac1
commit 36b9cc2982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -992,7 +992,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
return nil
}
if !initialCycle {
if initialCycle {
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
return err
}

View File

@ -17,7 +17,7 @@ import (
"google.golang.org/protobuf/types/known/emptypb"
)
// EthBackendServiceAPIVersion
// MiningAPIVersion
// 2.0.0 - move all mining-related methods to 'txpool/mining' server
var MiningAPIVersion = &types2.VersionReply{Major: 1, Minor: 0, Patch: 0}

View File

@ -202,7 +202,6 @@ func (back *BlockReaderWithSnapshots) HeaderByNumber(ctx context.Context, tx kv.
if ok {
return h, nil
}
return rawdb.ReadHeaderByNumber(tx, blockHeight), nil
}