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

Tidying up shard_state_transition #1862

Merged
merged 2 commits into from
Jun 2, 2020
Merged

Conversation

terencechain
Copy link
Contributor

Change list:

  • Replaced #Update shard state with triple quotes comment
  • Moved the order of update operations (Slot -> GasPrice -> TransitionDigest -> LatestBlockRoot) Hope it helps with readability

Comment on lines 80 to 85
shard_state.transition_digest = compute_shard_transition_digest(
beacon_state,
shard_state,
block.beacon_parent_root,
hash_tree_root(block.body),
)
Copy link
Contributor

@hwwhww hwwhww Jun 2, 2020

Choose a reason for hiding this comment

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

What do you think about moving transition_digest changes to the last? So that transition_digest would serve more like the state_root in the beacon chain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me. Thanks for looking!

@djrtwo djrtwo merged commit 09b387b into ethereum:dev Jun 2, 2020
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.

3 participants