From f20836aef886c8e3e12138ff0d70a4e684fe21f1 Mon Sep 17 00:00:00 2001 From: thinkAfCod Date: Wed, 18 Dec 2024 13:33:53 +0800 Subject: [PATCH] fix: add some config --- .../api/jsonrpc/methods/ExecutionEngineJsonRpcMethods.java | 2 +- .../besu/ethereum/mainnet/MainnetProtocolSpecs.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/ExecutionEngineJsonRpcMethods.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/ExecutionEngineJsonRpcMethods.java index ca66926656e..441e1399c05 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/ExecutionEngineJsonRpcMethods.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/ExecutionEngineJsonRpcMethods.java @@ -149,7 +149,7 @@ protected Map create() { new EnginePreparePayloadDebug( consensusEngineServer, protocolContext, engineQosTimer, mergeCoordinator.get()))); - if (protocolSchedule.anyMatch(p -> p.spec().getName().equalsIgnoreCase("cancun"))) { + if (protocolSchedule.anyMatch(p -> p.spec().getName().equalsIgnoreCase("cancun") || p.spec().getName().equalsIgnoreCase("canyon"))) { executionEngineApisSupported.add( new EngineGetPayloadV3( consensusEngineServer, diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java index 40662d669c5..0f2ef935da0 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolSpecs.java @@ -1252,7 +1252,8 @@ static ProtocolSpecBuilder graniteDefinition( TransactionType.ACCESS_LIST, TransactionType.EIP1559, TransactionType.OPTIMISM_DEPOSIT), - evm.getEvmVersion().getMaxInitcodeSize())) + evm.getEvmVersion().getMaxInitcodeSize(), + genesisConfigOptions)) .precompileContractRegistryBuilder(MainnetPrecompiledContractRegistries::granite) .blockHeaderValidatorBuilder(MainnetBlockHeaderValidator::cancunBlockHeaderValidator) .blockHashProcessor(new CancunBlockHashProcessor())