mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 10:32:19 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !initialCycle {
|
if initialCycle {
|
||||||
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
|
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ import (
|
|||||||
"google.golang.org/protobuf/types/known/emptypb"
|
"google.golang.org/protobuf/types/known/emptypb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EthBackendServiceAPIVersion
|
// MiningAPIVersion
|
||||||
// 2.0.0 - move all mining-related methods to 'txpool/mining' server
|
// 2.0.0 - move all mining-related methods to 'txpool/mining' server
|
||||||
var MiningAPIVersion = &types2.VersionReply{Major: 1, Minor: 0, Patch: 0}
|
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 {
|
if ok {
|
||||||
return h, nil
|
return h, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return rawdb.ReadHeaderByNumber(tx, blockHeight), nil
|
return rawdb.ReadHeaderByNumber(tx, blockHeight), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user