|
|
|
@ -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, |
|
|
|
|