Fix: always use miningParametersSupplier (#7187)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
pull/7193/head
Fabio Di Fabio 6 months ago committed by GitHub
parent af663b064b
commit bf67c6a23c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

@ -1876,7 +1876,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
public BesuControllerBuilder getControllerBuilder() {
pluginCommonConfiguration
.init(dataDir(), dataDir().resolve(DATABASE_PATH), getDataStorageConfiguration())
.withMiningParameters(getMiningParameters())
.withMiningParameters(miningParametersSupplier.get())
.withJsonRpcHttpOptions(jsonRpcHttpOptions);
final KeyValueStorageProvider storageProvider = keyValueStorageProvider(keyValueStorageName);
return controllerBuilderFactory

Loading…
Cancel
Save