Skip to content

Commit

Permalink
Merge branch 'unstable' into nflaig/builder-stricter-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 11, 2024
2 parents d6ed7e4 + 4b7d871 commit d441e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fork-choice/src/protoArray/computeDeltas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function computeDeltas(
// It is possible that there was a vote for an unknown validator if we change our justified
// state to a new state with a higher epoch that is on a different fork because that fork may have
// on-boarded fewer validators than the prior fork.
newBalance = newBalances === oldBalances ? oldBalance : newBalances[vIndex] ?? 0;
newBalance = newBalances === oldBalances ? oldBalance : (newBalances[vIndex] ?? 0);

if (equivocatingIndices.size > 0 && equivocatingIndices.has(vIndex)) {
// this function could be called multiple times but we only want to process slashing validator for 1 time
Expand Down

0 comments on commit d441e3a

Please sign in to comment.