Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[WIP] Enable validators to find and connect to other validators #3247

Closed
wants to merge 11 commits into from

Commits on Jul 30, 2019

  1. Configuration menu
    Copy the full SHA
    d0b342c View commit details
    Browse the repository at this point in the history
  2. 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.
    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    14c93da View commit details
    Browse the repository at this point in the history
  3. 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.
    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    2d67956 View commit details
    Browse the repository at this point in the history
  4. 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.
    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    cf35473 View commit details
    Browse the repository at this point in the history
  5. Cleanup

    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    273e8eb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    de8b998 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    76642e6 View commit details
    Browse the repository at this point in the history
  8. 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.
    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    fa945bd View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    72da73f View commit details
    Browse the repository at this point in the history
  10. 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.
    mxinden committed Jul 30, 2019
    Configuration menu
    Copy the full SHA
    9c6ae0e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bbeea1d View commit details
    Browse the repository at this point in the history