Skip to content

Commit

Permalink
Cleanup a blsChanges submission test helping condition (#5261)
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech authored and twoeths committed Mar 20, 2023
1 parent 8a9d186 commit bd0f28a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/beacon-node/src/api/impl/beacon/pool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd0f28a

Please sign in to comment.