fix statesync config

pull/4465/head
“GheisMohammadi” 1 year ago
parent 702eb5e1fb
commit 4629fda90b
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 3
      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"
@ -88,8 +87,8 @@ func CreateStagedSync(ctx context.Context,
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,

Loading…
Cancel
Save