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

Stmgr retrieval methods + is_ticket_winner calc for block validation #369

Merged
merged 12 commits into from
Apr 23, 2020

Conversation

dutterbutter
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Added state retrieval methods to StateManager component which are used during block validation in ChainSyncer
  • Added is_ticket_winner calc to BlockHeader which is used during block validation in ChainSyncer
  • Moved resolve_to_key_addr outside of DefaultRuntime

Reference issue to close (if applicable)

Closes #361 Closes #362 Closes #365

Other information and links

* Added is_Ticket_winner calc
* Updated block validation checks to reflect changes
blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
blockchain/chain_sync/src/sync.rs Outdated Show resolved Hide resolved
blockchain/state_manager/src/lib.rs Outdated Show resolved Hide resolved
blockchain/state_manager/src/lib.rs Outdated Show resolved Hide resolved
vm/src/error.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

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

one last little change and good with me !

vm/default_runtime/src/lib.rs Show resolved Hide resolved
vm/default_runtime/src/lib.rs Outdated Show resolved Hide resolved
@dutterbutter dutterbutter merged commit 3d5aeb2 into master Apr 23, 2020
@dutterbutter dutterbutter deleted the dustin/stmgr-getters branch April 23, 2020 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants