manual seal is now consensus agnostic (#7010)

* manual seal is now consensus agnostic

* pr grumbles
This commit is contained in:
Seun Lanlege
2020-09-03 13:55:12 +01:00
committed by GitHub
parent 34980ec88a
commit b0ff817ba0
10 changed files with 439 additions and 88 deletions
@@ -51,7 +51,7 @@ fn load_decode<B, T>(backend: &B, key: &[u8]) -> ClientResult<Option<T>>
}
/// Load or initialize persistent epoch change data from backend.
pub(crate) fn load_epoch_changes<Block: BlockT, B: AuxStore>(
pub fn load_epoch_changes<Block: BlockT, B: AuxStore>(
backend: &B,
config: &BabeGenesisConfiguration,
) -> ClientResult<SharedEpochChanges<Block, Epoch>> {
+3 -2
View File
@@ -126,9 +126,10 @@ use schnorrkel::SignatureError;
use codec::{Encode, Decode};
use sp_api::ApiExt;
mod aux_schema;
mod verification;
mod migration;
pub mod aux_schema;
pub mod authorship;
#[cfg(test)]
mod tests;
@@ -1051,7 +1052,7 @@ where
}
/// Register the babe inherent data provider, if not registered already.
fn register_babe_inherent_data_provider(
pub fn register_babe_inherent_data_provider(
inherent_data_providers: &InherentDataProviders,
slot_duration: u64,
) -> Result<(), sp_consensus::Error> {