diff --git a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/DefaultExecutionWeb3jClientProvider.java b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/DefaultExecutionWeb3jClientProvider.java index dd3465735b6..49814585d96 100644 --- a/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/DefaultExecutionWeb3jClientProvider.java +++ b/ethereum/executionclient/src/main/java/tech/pegasys/teku/ethereum/executionclient/web3j/DefaultExecutionWeb3jClientProvider.java @@ -23,6 +23,11 @@ import tech.pegasys.teku.infrastructure.time.TimeProvider; public class DefaultExecutionWeb3jClientProvider implements ExecutionWeb3jClientProvider { + private static final String[] NON_CRITICAL_METHODS = + new String[] { + "engine_exchangeCapabilities", "engine_getClientVersionV1", "engine_getBlobsV1" + }; + private final String eeEndpoint; private final Duration timeout; private final Optional jwtConfig; @@ -58,8 +63,7 @@ private synchronized void buildClient() { .jwtConfigOpt(jwtConfig) .timeProvider(timeProvider) .executionClientEventsPublisher(executionClientEventsPublisher) - .nonCriticalMethods( - "engine_exchangeCapabilities", "engine_getClientVersionV1", "engine_getBlobsV1") + .nonCriticalMethods(NON_CRITICAL_METHODS) .build(); this.alreadyBuilt = true; }