Skip to content

Commit

Permalink
fix: address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 6, 2024
1 parent 11012b8 commit 22801c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/beacon-node/src/chain/opPools/opPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,9 @@ export class OpPool {
? (headBlock as capella.SignedBeaconBlock).message.body.blsToExecutionChanges
: [];

const recentBlsToExecutionChangeIndexes = new Set<ValidatorIndex>();
for (const blsToExecutionChange of recentBlsToExecutionChanges) {
recentBlsToExecutionChangeIndexes.add(blsToExecutionChange.message.validatorIndex);
}
const recentBlsToExecutionChangeIndexes = new Set(
recentBlsToExecutionChanges.map((blsToExecutionChange) => blsToExecutionChange.message.validatorIndex)
);

for (const [key, blsToExecutionChange] of this.blsToExecutionChanges.entries()) {
const {validatorIndex} = blsToExecutionChange.data.message;
Expand Down

0 comments on commit 22801c7

Please sign in to comment.