From 4629fda90bc7d9789b1c1465adcf088391cd1cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CGheisMohammadi=E2=80=9D?= <36589218+GheisMohammadi@users.noreply.github.com> Date: Mon, 26 Jun 2023 23:18:05 +0800 Subject: [PATCH] fix statesync config --- api/service/stagedstreamsync/syncing.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/service/stagedstreamsync/syncing.go b/api/service/stagedstreamsync/syncing.go index ba5ab3a20..6e0d01a4b 100644 --- a/api/service/stagedstreamsync/syncing.go +++ b/api/service/stagedstreamsync/syncing.go @@ -10,7 +10,6 @@ import ( "time" "github.com/harmony-one/harmony/consensus" - "github.com/ethereum/go-ethereum/common" "github.com/harmony-one/harmony/core" "github.com/harmony-one/harmony/internal/utils" sttypes "github.com/harmony-one/harmony/p2p/stream/types" @@ -85,11 +84,11 @@ func CreateStagedSync(ctx context.Context, stageHeadsCfg := NewStageHeadersCfg(bc, mainDB) stageShortRangeCfg := NewStageShortRangeCfg(bc, mainDB) stageSyncEpochCfg := NewStageEpochCfg(bc, mainDB) - + stageBodiesCfg := NewStageBodiesCfg(bc, mainDB, dbs, config.Concurrency, protocol, isBeaconNode, config.LogProgress) stageStatesCfg := NewStageStatesCfg(bc, mainDB, dbs, config.Concurrency, logger, config.LogProgress) + stageStateSyncCfg := NewStageStateSyncCfg(bc, mainDB, config.Concurrency, protocol, logger, config.LogProgress) lastMileCfg := NewStageLastMileCfg(ctx, bc, mainDB) - stageStateSyncCfg := NewStageStateSyncCfg(bc, mainDB, common.Hash{}, config.Concurrency, protocol, logger, config.LogProgress) stageFinishCfg := NewStageFinishCfg(mainDB) stages := DefaultStages(ctx,