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

Blockchain service provides IsCanonical getter #5932

Merged
merged 9 commits into from May 20, 2020
Merged

Conversation

terencechain
Copy link
Member

What type of PR is this?

Feature

What does this PR do? Why is it needed?
In preparation for v0.12, the blockchain service should provide a IsCanonical getter for other service to query whether input block root is part of the canonical chain.
The first consumer of this is block by range respond. This PR only implements the feature, it's not yet used in the run time. It'll be used in sync run time at the start of v0.12

Other notes for review
Tested locally via blocktree to verify that it's correctly filtered

@terencechain terencechain added the Ready For Review A pull request ready for code review label May 20, 2020
@terencechain terencechain requested a review from a team as a code owner May 20, 2020 18:26
@terencechain terencechain self-assigned this May 20, 2020
@terencechain terencechain added the Enhancement New feature or request label May 20, 2020
@prylabs-bulldozer prylabs-bulldozer bot merged commit 5f72d28 into master May 20, 2020
@delete-merged-branch delete-merged-branch bot deleted the is-canonical branch May 20, 2020 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants