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
Commits on Jul 30, 2019
-
Configuration menu - View commit details
-
Copy full SHA for d0b342c - Browse repository at this point
Copy the full SHA d0b342cView commit details -
core/service: Add trait abst to build_network_future to call runtime
Instead of building the network future via an independent function `build_network_future`, follow the convention introduced through `components.rs/OffchainWorker` and have `build_network_future` implement a trait.
Configuration menu - View commit details
-
Copy full SHA for 14c93da - Browse repository at this point
Copy the full SHA 14c93daView commit details -
core/session: Declare + implement runtime SessionApi
The runtime SessionApi enables users to retrieve the ids of the current set of validators from the srml session module.
Configuration menu - View commit details
-
Copy full SHA for 2d67956 - Browse repository at this point
Copy the full SHA 2d67956View commit details -
core/service: Use AuthorityKeyProvider
For a node to be able to learn its own authority id (public key) and to be able to sign payloads for the DHT, the node needs to retrieve its authority key. This is done via AuthorityKeyProvider.
Configuration menu - View commit details
-
Copy full SHA for cf35473 - Browse repository at this point
Copy the full SHA cf35473View commit details -
Configuration menu - View commit details
-
Copy full SHA for 273e8eb - Browse repository at this point
Copy the full SHA 273e8ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for de8b998 - Browse repository at this point
Copy the full SHA de8b998View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76642e6 - Browse repository at this point
Copy the full SHA 76642e6View commit details -
core/consensus,node/runtime: Declare and implement authorities endpoint
The goal of the commit is to be able to retrieve the current set of authorities without needing to know the concrete consensus mechanism in place. In order to achieve the above this commit introduces the `core/consensus/common/primitives` crate, declaring the `ConsensusApi` runtime API. In addition it implements the above mentioned trait definition in `node/runtime` by returning the current authorities of the BABE consensus mechanism.
Configuration menu - View commit details
-
Copy full SHA for fa945bd - Browse repository at this point
Copy the full SHA fa945bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72da73f - Browse repository at this point
Copy the full SHA 72da73fView commit details -
core/service: Verify signature before adding node
When retrieving addresses of other validators via the DHT, make sure they are within the current validator set and the payload is properly signed with the authority key.
Configuration menu - View commit details
-
Copy full SHA for 9c6ae0e - Browse repository at this point
Copy the full SHA 9c6ae0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbeea1d - Browse repository at this point
Copy the full SHA bbeea1dView commit details
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.