Skip to content

Commit

Permalink
Restore previous behaviour for preMergeBesuControllerBuilder (#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha authored Aug 8, 2024
1 parent a92fdbb commit 745d353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

### Bug fixes
- Correct entrypoint in Docker evmtool [#7430](https://github.com/hyperledger/besu/pull/7430)
- Fix behaviour when starting in a pre-merge network [#7431](https://github.com/hyperledger/besu/pull/7431)

## 24.7.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
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;
Expand Down Expand Up @@ -129,7 +130,13 @@ protected MiningCoordinator createMiningCoordinator(
transitionProtocolSchedule.getPreMergeSchedule(),
protocolContext,
transactionPool,
MiningParameters.MINING_DISABLED,
ImmutableMiningParameters.builder()
.from(miningParameters)
.mutableInitValues(
ImmutableMiningParameters.MutableInitValues.builder()
.isMiningEnabled(false)
.build())
.build(),
syncState,
ethProtocolManager),
mergeBesuControllerBuilder.createTransitionMiningCoordinator(
Expand Down

0 comments on commit 745d353

Please sign in to comment.