-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Altair 1.1.0-alpha.5 - Beacon Chain #2554
Conversation
Code Climate has analyzed commit cc659de and detected 2 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
packages/beacon-state-transition/src/allForks/util/epochContext.ts
Outdated
Show resolved
Hide resolved
packages/beacon-state-transition/src/altair/block/processSyncCommittee.ts
Show resolved
Hide resolved
(attestation.aggregationBits as unknown) as TreeBacked<BitList>, | ||
this.config.types.phase0.CommitteeBits | ||
) | ||
: committeeIndices.filter((_, index) => !!aggregationBits[index]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a hot path in the state transition function we should keep using a for loop for speed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use zipIndexesInBitList
to improve performance
fn: () => zipIndexesInBitList(config, indexes, bitlistTree), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! I was refering to the alternative path when it's not a tree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If aggregationBits should always be a tree then the filter is fine
Motivation
Description
Upgrade/fix our fast state transition to 1.1.0-alpha.5
Add all missing minimal spec tests
Improve the way to access
aggregationBits
as inlodestar/packages/beacon-state-transition/test/perf/util/aggregationBits.test.ts
Line 23 in efea313
Improve/fix
processSyncCommittee
to cache participant reward inEpochContext
close Altair 1.1.0-alpha.4 #2530
TODOs