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

Cleanup light client tests #2929

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Cleanup light client tests #2929

merged 1 commit into from
Jul 1, 2022

Conversation

etan-status
Copy link
Contributor

Various cleanups and minor fixes:

  • Consistent terminology:
    • signed_block -> attested_block
    • finalized_block_header -> finalized_header
    • snapshot_period -> store_period
  • Use correct block in finality test (blocks[-1] instead of new one)
  • Add signed_block_header func to get header from SignedBeaconBlock
  • Remove block_header from get_sync_aggregate helper arguments
  • Use state_transition_with_full_block as shortcut for multiple calls
  • Have finalized_header actually be header instead of full block body
  • Consistent ordering of assert to match structure definition

Various cleanups and minor fixes:
- Consistent terminology:
  - `signed_block` -> `attested_block`
  - `finalized_block_header` -> `finalized_header`
  - `snapshot_period` -> `store_period`
- Use correct block in finality test (`blocks[-1]` instead of new one)
- Add `signed_block_header` func to get header from `SignedBeaconBlock`
- Remove `block_header` from `get_sync_aggregate` helper arguments
- Use `state_transition_with_full_block` as shortcut for multiple calls
- Have `finalized_header` actually be header instead of full block body
- Consistent ordering of `assert` to match structure definition
Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

thanks for the cleanup!

@hwwhww hwwhww merged commit bfa048a into ethereum:dev Jul 1, 2022
@etan-status etan-status deleted the lc-testterms branch July 1, 2022 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants