Rebased onto dev.

pull/4455/head
frozen 1 year ago
parent 82b3f0ceda
commit 41900b0400
No known key found for this signature in database
GPG Key ID: 5391C63E79B03EDE
  1. 4
      api/service/stagedstreamsync/downloader.go
  2. 4
      api/service/stagedstreamsync/syncing.go

@ -6,9 +6,6 @@ import (
"time" "time"
"github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/event"
"github.com/harmony-one/harmony/consensus"
"github.com/rs/zerolog"
"github.com/harmony-one/harmony/consensus" "github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core" "github.com/harmony-one/harmony/core"
nodeconfig "github.com/harmony-one/harmony/internal/configs/node" nodeconfig "github.com/harmony-one/harmony/internal/configs/node"
@ -17,6 +14,7 @@ import (
"github.com/harmony-one/harmony/p2p/stream/common/streammanager" "github.com/harmony-one/harmony/p2p/stream/common/streammanager"
"github.com/harmony-one/harmony/p2p/stream/protocols/sync" "github.com/harmony-one/harmony/p2p/stream/protocols/sync"
"github.com/harmony-one/harmony/shard" "github.com/harmony-one/harmony/shard"
"github.com/rs/zerolog"
) )
type ( type (

@ -46,8 +46,6 @@ func CreateStagedSync(ctx context.Context,
protocol syncProtocol, protocol syncProtocol,
config Config, config Config,
logger zerolog.Logger, logger zerolog.Logger,
logProgress bool,
c *consensus.Consensus,
) (*StagedStreamSync, error) { ) (*StagedStreamSync, error) {
logger.Info(). logger.Info().
Uint32("shard", bc.ShardID()). Uint32("shard", bc.ShardID()).
@ -82,7 +80,7 @@ func CreateStagedSync(ctx context.Context,
} }
stageHeadsCfg := NewStageHeadersCfg(bc, mainDB) stageHeadsCfg := NewStageHeadersCfg(bc, mainDB)
stageShortRangeCfg := NewStageShortRangeCfg(bc, mainDB, c) stageShortRangeCfg := NewStageShortRangeCfg(bc, mainDB, consensus)
stageSyncEpochCfg := NewStageEpochCfg(bc, mainDB) stageSyncEpochCfg := NewStageEpochCfg(bc, mainDB)
stageBodiesCfg := NewStageBodiesCfg(bc, mainDB, dbs, config.Concurrency, protocol, isBeaconNode, config.LogProgress) stageBodiesCfg := NewStageBodiesCfg(bc, mainDB, dbs, config.Concurrency, protocol, isBeaconNode, config.LogProgress)
stageStatesCfg := NewStageStatesCfg(bc, mainDB, dbs, config.Concurrency, logger, config.LogProgress) stageStatesCfg := NewStageStatesCfg(bc, mainDB, dbs, config.Concurrency, logger, config.LogProgress)

Loading…
Cancel
Save