|
|
@ -33,7 +33,6 @@ import tech.pegasys.pantheon.ethereum.eth.sync.SynchronizerConfiguration; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.sync.state.SyncState; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.sync.state.SyncState; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.transactions.TransactionPoolFactory; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.transactions.TransactionPoolFactory; |
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHeaderValidator; |
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHeaderValidator; |
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.MainnetProtocolSchedule; |
|
|
|
|
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule; |
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule; |
|
|
|
import tech.pegasys.pantheon.ethereum.p2p.api.ProtocolManager; |
|
|
|
import tech.pegasys.pantheon.ethereum.p2p.api.ProtocolManager; |
|
|
|
import tech.pegasys.pantheon.ethereum.p2p.config.SubProtocolConfiguration; |
|
|
|
import tech.pegasys.pantheon.ethereum.p2p.config.SubProtocolConfiguration; |
|
|
@ -92,6 +91,7 @@ public class MainnetPantheonController implements PantheonController<Void> { |
|
|
|
final ProtocolSchedule<Void> protocolSchedule, |
|
|
|
final ProtocolSchedule<Void> protocolSchedule, |
|
|
|
final SynchronizerConfiguration syncConfig, |
|
|
|
final SynchronizerConfiguration syncConfig, |
|
|
|
final MiningParameters miningParams, |
|
|
|
final MiningParameters miningParams, |
|
|
|
|
|
|
|
final int networkId, |
|
|
|
final KeyPair nodeKeys, |
|
|
|
final KeyPair nodeKeys, |
|
|
|
final PrivacyParameters privacyParameters, |
|
|
|
final PrivacyParameters privacyParameters, |
|
|
|
final Path dataDirectory, |
|
|
|
final Path dataDirectory, |
|
|
@ -108,10 +108,7 @@ public class MainnetPantheonController implements PantheonController<Void> { |
|
|
|
new EthProtocolManager( |
|
|
|
new EthProtocolManager( |
|
|
|
blockchain, |
|
|
|
blockchain, |
|
|
|
protocolContext.getWorldStateArchive(), |
|
|
|
protocolContext.getWorldStateArchive(), |
|
|
|
genesisConfig |
|
|
|
networkId, |
|
|
|
.getConfigOptions() |
|
|
|
|
|
|
|
.getChainId() |
|
|
|
|
|
|
|
.orElse(MainnetProtocolSchedule.DEFAULT_CHAIN_ID), |
|
|
|
|
|
|
|
fastSyncEnabled, |
|
|
|
fastSyncEnabled, |
|
|
|
syncConfig.downloaderParallelism(), |
|
|
|
syncConfig.downloaderParallelism(), |
|
|
|
syncConfig.transactionsParallelism(), |
|
|
|
syncConfig.transactionsParallelism(), |
|
|
|