diff --git a/services/beaconchain/src/main/java/tech/pegasys/teku/services/beaconchain/BeaconChainController.java b/services/beaconchain/src/main/java/tech/pegasys/teku/services/beaconchain/BeaconChainController.java index 2881a222e10..d950b816fb7 100644 --- a/services/beaconchain/src/main/java/tech/pegasys/teku/services/beaconchain/BeaconChainController.java +++ b/services/beaconchain/src/main/java/tech/pegasys/teku/services/beaconchain/BeaconChainController.java @@ -898,12 +898,12 @@ public void initValidatorApiHandler() { new GraffitiBuilder( beaconConfig.validatorConfig().getClientGraffitiAppendFormat(), beaconConfig.validatorConfig().getGraffitiProvider().get()); + eventChannels.subscribe(ExecutionClientVersionChannel.class, graffitiBuilder); final ExecutionClientVersionProvider executionClientVersionProvider = new ExecutionClientVersionProvider( executionLayer, eventChannels.getPublisher(ExecutionClientVersionChannel.class), graffitiBuilder.getConsensusClientVersion()); - eventChannels.subscribe(ExecutionClientVersionChannel.class, graffitiBuilder); final BlockOperationSelectorFactory operationSelector = new BlockOperationSelectorFactory( spec, diff --git a/teku/src/main/java/tech/pegasys/teku/cli/BeaconNodeCommand.java b/teku/src/main/java/tech/pegasys/teku/cli/BeaconNodeCommand.java index 5cc19ea8801..09d6aad6cc8 100644 --- a/teku/src/main/java/tech/pegasys/teku/cli/BeaconNodeCommand.java +++ b/teku/src/main/java/tech/pegasys/teku/cli/BeaconNodeCommand.java @@ -212,7 +212,7 @@ private CommandLine getConfigFileCommandLine(final ConfigFileCommand configFileC } private CommandLine getCommandLine() { - return configureCommandLine(new CommandLine(this)).addSubcommand(validatorClientSubcommand); + return configureCommandLine(new CommandLine(this).addSubcommand(validatorClientSubcommand)); } public int parse(final String[] args) {