Skip to content
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

Merged
merged 25 commits into from
May 28, 2021

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented May 24, 2021

Motivation

  • To conform to altair 1.1.0-alpha.5 spec

Description

TODOs

  • Beacon Chain
  • Validator
  • Network
  • Sync Protocol
  • Fulfill spec tests

@codeclimate
Copy link

codeclimate bot commented May 24, 2021

Code Climate has analyzed commit cc659de and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

View more on Code Climate.

@twoeths twoeths mentioned this pull request May 24, 2021
@twoeths twoeths marked this pull request as ready for review May 24, 2021 09:32
@twoeths twoeths marked this pull request as draft May 26, 2021 03:24
(attestation.aggregationBits as unknown) as TreeBacked<BitList>,
this.config.types.phase0.CommitteeBits
)
: committeeIndices.filter((_, index) => !!aggregationBits[index]);
Copy link
Contributor

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

Copy link
Contributor Author

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),

Copy link
Contributor

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

Copy link
Contributor

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

@twoeths twoeths marked this pull request as ready for review May 28, 2021 10:24
@wemeetagain wemeetagain merged commit b5d6eaf into master May 28, 2021
@wemeetagain wemeetagain deleted the tuyen/altair-1.1.0-alpha.4-beacon-chain branch May 28, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Altair 1.1.0-alpha.4
4 participants