From 3b035781c683f3de54f1cfec7a714e67b3775025 Mon Sep 17 00:00:00 2001 From: harkamal Date: Sun, 12 Mar 2023 10:59:07 +0530 Subject: [PATCH] Cleanup a blsChanges submission test helping condition --- packages/beacon-node/src/api/impl/beacon/pool/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/beacon-node/src/api/impl/beacon/pool/index.ts b/packages/beacon-node/src/api/impl/beacon/pool/index.ts index 6900b12c1695..266e8be17cdd 100644 --- a/packages/beacon-node/src/api/impl/beacon/pool/index.ts +++ b/packages/beacon-node/src/api/impl/beacon/pool/index.ts @@ -116,11 +116,7 @@ export function getBeaconPoolApi({ try { // Ignore even if the change exists and reprocess await validateBlsToExecutionChange(chain, blsToExecutionChange, true); - const preCapella = !( - chain.clock.currentEpoch >= chain.config.CAPELLA_FORK_EPOCH && - // TODO: Remove this condition once testing is done - network.isSubscribedToGossipCoreTopics() - ); + const preCapella = chain.clock.currentEpoch < chain.config.CAPELLA_FORK_EPOCH; chain.opPool.insertBlsToExecutionChange(blsToExecutionChange, preCapella); if (!preCapella) { await network.gossip.publishBlsToExecutionChange(blsToExecutionChange);