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 client method for getting latest protocol state snapshot #144

Merged
merged 4 commits into from
Feb 8, 2021

Conversation

jordanschalm
Copy link
Member

@jordanschalm jordanschalm commented Feb 5, 2021

Toward: https://github.com/dapperlabs/flow-go/issues/4899

Description

Adds a method to sdk.Client for retrieving the latest protocol state snapshot (corresponding to the API added on the Access node in onflow/flow-go#377). This will be used by Flow nodes joining the network at an epoch boundary (as opposed to during a spork) to bootstrap a space-efficient local protocol state from an arbitrary state snapshot (see onflow/flow-go#209).


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@@ -544,3 +544,15 @@ func getEventsResult(res *access.EventsResponse) ([]BlockEvents, error) {

return results, nil
}

Copy link
Contributor

Choose a reason for hiding this comment

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

have the access node implementations already been done for this changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's in review onflow/flow-go#377

Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

Nice!

@jordanschalm jordanschalm merged commit ad8f9c5 into master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants