Commit 444bf719 authored by Max Inden's avatar Max Inden Committed by DemiMarie-parity
Browse files

core/consensus,node/runtime: Declare and implement authorities endpoint (#3207)

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.
parent 8958f410
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment