diff --git a/eth/stagedsync/stage_headers.go b/eth/stagedsync/stage_headers.go index f4957b3ff8d176a58656d54cbae5de93af668098..8cf57ccc56ae6e28629013355a5ba161df1608ae 100644 --- a/eth/stagedsync/stage_headers.go +++ b/eth/stagedsync/stage_headers.go @@ -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 } diff --git a/ethdb/privateapi/mining.go b/ethdb/privateapi/mining.go index ed480e17b05c969ddb81672e4194c4b674c54ce4..883673a44f0fa4f99c97c9b9ee29f5cd969b8b97 100644 --- a/ethdb/privateapi/mining.go +++ b/ethdb/privateapi/mining.go @@ -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} diff --git a/turbo/snapshotsync/block_reader.go b/turbo/snapshotsync/block_reader.go index 575a174ea65bc5c3decdeb55685a12f49a73a670..30580a5f4da20980d0884864a402f74ccf761363 100644 --- a/turbo/snapshotsync/block_reader.go +++ b/turbo/snapshotsync/block_reader.go @@ -202,7 +202,6 @@ func (back *BlockReaderWithSnapshots) HeaderByNumber(ctx context.Context, tx kv. if ok { return h, nil } - return rawdb.ReadHeaderByNumber(tx, blockHeight), nil }