This repository has been 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.6k
[WIP] Enable validators to find and connect to other validators #3247
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d0b342c
core/{service,network}: Put AuthorityId -> MultiAddr on Dht
mxinden 14c93da
core/service: Add trait abst to build_network_future to call runtime
mxinden 2d67956
core/session: Declare + implement runtime SessionApi
mxinden cf35473
core/service: Use AuthorityKeyProvider
mxinden 273e8eb
Cleanup
mxinden de8b998
core/service: Match received external addresses with their public key
mxinden 76642e6
core/service: Advice peerset to connect to discovered nodes
mxinden fa945bd
core/consensus,node/runtime: Declare and implement authorities endpoint
mxinden 72da73f
core/service: Use common consensus authorities api
mxinden 9c6ae0e
core/service: Verify signature before adding node
mxinden bbeea1d
core/service: Refactor build_network_future
mxinden 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
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,4 +184,3 @@ decl_runtime_apis! { | |
fn validate_transaction(tx: <Block as BlockT>::Extrinsic) -> TransactionValidity; | ||
} | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
For GRANDPA we need to check the active authority set from the node state and not the runtime, it is tracked here. Maybe we can just pass a
Fn() -> Vec<Authority>
into this function and then build up the authorities externally (babe authorities + grandpa authorities).