mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Snapshots: initial sync fix (#3750)
This commit is contained in:
parent
4cf4c1bac1
commit
36b9cc2982
@ -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
|
||||
}
|
||||
|
@ -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}
|
||||
|
||||
|
@ -202,7 +202,6 @@ func (back *BlockReaderWithSnapshots) HeaderByNumber(ctx context.Context, tx kv.
|
||||
if ok {
|
||||
return h, nil
|
||||
}
|
||||
|
||||
return rawdb.ReadHeaderByNumber(tx, blockHeight), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user