|
|
|
@ -30,6 +30,7 @@ import org.hyperledger.besu.ethereum.ProtocolContext; |
|
|
|
|
import org.hyperledger.besu.ethereum.blockcreation.MiningCoordinator; |
|
|
|
|
import org.hyperledger.besu.ethereum.chain.Blockchain; |
|
|
|
|
import org.hyperledger.besu.ethereum.chain.MutableBlockchain; |
|
|
|
|
import org.hyperledger.besu.ethereum.core.ImmutableMiningParameters; |
|
|
|
|
import org.hyperledger.besu.ethereum.core.MiningParameters; |
|
|
|
|
import org.hyperledger.besu.ethereum.core.PrivacyParameters; |
|
|
|
|
import org.hyperledger.besu.ethereum.eth.EthProtocolConfiguration; |
|
|
|
@ -129,7 +130,13 @@ public class TransitionBesuControllerBuilder extends BesuControllerBuilder { |
|
|
|
|
transitionProtocolSchedule.getPreMergeSchedule(), |
|
|
|
|
protocolContext, |
|
|
|
|
transactionPool, |
|
|
|
|
MiningParameters.MINING_DISABLED, |
|
|
|
|
ImmutableMiningParameters.builder() |
|
|
|
|
.from(miningParameters) |
|
|
|
|
.mutableInitValues( |
|
|
|
|
ImmutableMiningParameters.MutableInitValues.builder() |
|
|
|
|
.isMiningEnabled(false) |
|
|
|
|
.build()) |
|
|
|
|
.build(), |
|
|
|
|
syncState, |
|
|
|
|
ethProtocolManager), |
|
|
|
|
mergeBesuControllerBuilder.createTransitionMiningCoordinator( |
|
|
|
|