From a5dfb3b96705aafe7deed3e97e413d6e1f057cd8 Mon Sep 17 00:00:00 2001 From: Dmitrii Shmatko Date: Tue, 16 Apr 2024 23:00:15 +0400 Subject: [PATCH] Fix to be sure subscriber is ready when subscription is used (#8209) --- .../teku/services/beaconchain/BeaconChainController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3ae8b310fb9..9a11564014b 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 @@ -890,12 +890,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,