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

Add accessors for LC header #3150

Closed
wants to merge 3 commits into from
Closed

Conversation

etan-status
Copy link
Contributor

Introduce get_lc_beacon_slot and get_lc_beacon_root accessors similar to get_current_slot(state) to account for future extensions to the light client header structure that may override how those fields are accessed. Idea is to extend with execution accessors in the future.

Introduce `get_lc_beacon_slot` and `get_lc_beacon_root` accessors
similar to `get_current_slot(state)` to account for future extensions
to the light client header structure that may override how those fields
are accessed. Idea is to extend with execution accessors in the future.
@@ -150,6 +152,20 @@ class LightClientStore(object):

## Helper functions

### `get_lc_beacon_slot`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Related discussion: #3151 (review)

Whether a LightClientHeader wrapper / typedef should be introduced for BeaconBlockHeader for consistency with following forks.

@etan-status
Copy link
Contributor Author

Superseded by #3190

@etan-status etan-status deleted the lc-accessors branch January 12, 2023 16:42
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.

2 participants