Init store for slots-headers (#2492)

* init store for slots

* fix: add check_equivocation to Aura/Babe

* fix tests

* fix: add pruning bound

Co-Authored-By: André Silva <andre.beat@gmail.com>

* use saturating_sub
This commit is contained in:
Marcio Diaz
2019-05-15 12:22:43 +02:00
committed by GitHub
parent d50b717ff6
commit bc325eca66
5 changed files with 356 additions and 20 deletions
@@ -23,8 +23,10 @@
#![forbid(warnings, unsafe_code, missing_docs)]
mod slots;
mod aux_schema;
pub use slots::{slot_now, SlotInfo, Slots};
pub use aux_schema::{check_equivocation, MAX_SLOT_CAPACITY, PRUNING_BOUND};
use codec::{Decode, Encode};
use consensus_common::{SyncOracle, SelectChain};