chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -82,8 +82,9 @@ impl SlotTimestampProvider {
|
||||
let slot_duration = pezsc_consensus_aura::slot_duration(&*client)?;
|
||||
|
||||
let time = Self::with_header(&client, slot_duration, |header| {
|
||||
let slot_number = *pezsc_consensus_aura::find_pre_digest::<B, AuthoritySignature>(&header)
|
||||
.map_err(|err| format!("{}", err))?;
|
||||
let slot_number =
|
||||
*pezsc_consensus_aura::find_pre_digest::<B, AuthoritySignature>(&header)
|
||||
.map_err(|err| format!("{}", err))?;
|
||||
Ok(slot_number)
|
||||
})?;
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
use futures::prelude::*;
|
||||
use futures_timer::Delay;
|
||||
use prometheus_endpoint::Registry;
|
||||
use pezsc_client_api::{
|
||||
backend::{Backend as ClientBackend, Finalizer},
|
||||
client::BlockchainEvents,
|
||||
@@ -35,6 +34,7 @@ use pezsp_consensus::{Environment, Proposer, SelectChain};
|
||||
use pezsp_core::traits::SpawnNamed;
|
||||
use pezsp_inherents::CreateInherentDataProviders;
|
||||
use pezsp_runtime::{traits::Block as BlockT, ConsensusEngineId};
|
||||
use prometheus_endpoint::Registry;
|
||||
use std::{marker::PhantomData, sync::Arc, time::Duration};
|
||||
|
||||
mod error;
|
||||
@@ -346,16 +346,18 @@ pub async fn run_delayed_finalize<B, CB, C, S>(
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use pezsc_basic_authorship::ProposerFactory;
|
||||
use pezsc_consensus::ImportedAux;
|
||||
use pezsc_transaction_pool::{BasicPool, FullChainApi, Options, RevalidationType};
|
||||
use pezsc_transaction_pool_api::{MaintainedTransactionPool, TransactionPool, TransactionSource};
|
||||
use pezsp_inherents::InherentData;
|
||||
use pezsp_runtime::generic::{Digest, DigestItem};
|
||||
use bizinikiwi_test_runtime_client::{
|
||||
DefaultTestClientBuilderExt, Sr25519Keyring::*, TestClientBuilder, TestClientBuilderExt,
|
||||
};
|
||||
use bizinikiwi_test_runtime_transaction_pool::{uxt, TestApi};
|
||||
use pezsc_basic_authorship::ProposerFactory;
|
||||
use pezsc_consensus::ImportedAux;
|
||||
use pezsc_transaction_pool::{BasicPool, FullChainApi, Options, RevalidationType};
|
||||
use pezsc_transaction_pool_api::{
|
||||
MaintainedTransactionPool, TransactionPool, TransactionSource,
|
||||
};
|
||||
use pezsp_inherents::InherentData;
|
||||
use pezsp_runtime::generic::{Digest, DigestItem};
|
||||
|
||||
fn api() -> Arc<TestApi> {
|
||||
Arc::new(TestApi::empty())
|
||||
|
||||
@@ -25,8 +25,8 @@ use futures::{
|
||||
};
|
||||
use jsonrpsee::{core::async_trait, proc_macros::rpc};
|
||||
use pezsc_consensus::ImportedAux;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezsp_runtime::EncodedJustification;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Sender passed to the authorship task to report errors or successes.
|
||||
pub type Sender<T> = Option<oneshot::Sender<std::result::Result<T, Error>>>;
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
|
||||
use crate::{rpc, ConsensusDataProvider, CreatedBlock, Error};
|
||||
use futures::prelude::*;
|
||||
use pezsc_consensus::{BlockImport, BlockImportParams, ForkChoiceStrategy, ImportResult, StateAction};
|
||||
use pezsc_consensus::{
|
||||
BlockImport, BlockImportParams, ForkChoiceStrategy, ImportResult, StateAction,
|
||||
};
|
||||
use pezsc_transaction_pool_api::TransactionPool;
|
||||
use pezsp_api::ProvideRuntimeApi;
|
||||
use pezsp_blockchain::HeaderBackend;
|
||||
|
||||
Reference in New Issue
Block a user