This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expose GRANDPA round state through RPC #5375
Merged
andresilva
merged 42 commits into
paritytech:master
from
octol:jon/issue-4921-expose-grandpa-round-state-try-shared-arc
May 4, 2020
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
5f6bb70
grandpa: wire up basic RPC call
octol 4ef39fa
grandpa: make it compile against GRANDPA with expose round state
andresilva eea294d
grandpa: use shared voter state to expose RPC endpoint
octol a8109a2
grandpa: restructure into nested structs
octol 04fca7e
grandpa: return background rounds too
octol 627c7a8
grandpa: return error when endpoint not ready
octol 123e249
grandpa: collect grandpa rpc deps
octol 10b3266
grandpa: decide to use concrete AuthorityId in finality-grandpa-rpc
octol eb5d87d
grandpa: remove unncessary type annotation
octol 6edfa13
grandpa: move error code to const
octol bcb206d
grandpa: remove unnecessary WIP comment
octol 4ca212d
grandpa: remove Id type parameter for SharedVoterState
octol b2af4f7
grandpa: update tests to add shared_voter_state in parameters
octol b04616f
grandpa: remove old deprecated test
octol c9bcbf8
grandpa: fix getting the correct set_id
octol fedfdcc
grandpa: make SharedVoterState a struct
octol 4e75855
grandpa: wrap shared_voter_state in rpc_setup
octol f4140b6
grandpa: replace spaces with tabs
octol 7586652
grandpa: limit RwLock write attempt to 1 sec
octol 3d6f1c2
grandpa: add missing doc comments and remove some pub
octol 4872fcb
Apply suggestions from code review
Demi-Marie 75efc8e
grandpa: update function name call after change in finality-grandpa
octol 26b0959
grandpa: group pub use and only export voter::report
octol 9c55fa5
grandpa: add missing docs
octol d636c28
grandpa: extract out structs used for json serialization
octol e63c3be
grandpa: stick to u32 for fields intended for js
octol c02211c
grandpa: move Error type to its own file
octol fef11d3
grandpa: group pub use better
octol f1c2103
Apply code review suggestion
octol bc68092
Merge 'upstream/master' into jon/issue-4921-expose-grandpa-round-stat…
octol b809ee1
grandpa: use correct version of finality-granpda in rpc crate
octol 988bbee
grandpa: add back basic rpc unit test
octol f9d9b1c
grandpa: replace SharedVoterState::new() with empty()
andresilva 9eb5fa3
node: cleanup grandpa::SharedVoterState usage in macro
andresilva 12004bc
grandpa: remove VoterState error variant
andresilva 1ef01df
grandpa: enable missing futures compat feature
andresilva a97bb87
grandpa: fix typo in error variant
andresilva 7aed9bb
grandpa: remove test_utils
andresilva 65f8674
grandpa: allow mocking rpc handler components
andresilva a3e477d
grandpa: rename serialized to report in rpc module
andresilva 23536a0
grandpa: add proper test for RPC
andresilva aabacb8
grandpa: update to finality-grandpa v0.12.1
andresilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
grandpa: restructure into nested structs
- Loading branch information
commit a8109a204d195f87c686c8870968832b130143ab
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are
Prevotes,Precommits,RoundStateand all their fields public?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good point. I went through and removed
pubin a number of places!