node: use BABE predigest data to find authorship (#3293)

* node: use BABE predigest data to find authorship

* node: bump spec_version

* babe: use u32 for authority index
This commit is contained in:
André Silva
2019-08-02 18:52:36 +01:00
committed by Gavin Wood
parent da8b91ae7b
commit aa86185648
4 changed files with 8 additions and 9 deletions
+1 -2
View File
@@ -180,9 +180,8 @@ parameter_types! {
pub const UncleGenerations: u64 = 0;
}
// TODO: #2986 implement this properly
impl authorship::Trait for Runtime {
type FindAuthor = ();
type FindAuthor = session::FindAccountFromAuthorIndex<Self, Babe>;
type UncleGenerations = UncleGenerations;
type FilterUncle = ();
type EventHandler = Staking;