mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Implement block proposal logic
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
use sc_service::ChainType;
|
||||
|
||||
use sp_runtime::traits::Verify;
|
||||
use sp_core::{Pair as PairTrait, sr25519::Pair};
|
||||
|
||||
use serai_runtime::{WASM_BINARY, AccountId, Signature, GenesisConfig, SystemConfig, BalancesConfig};
|
||||
use serai_runtime::{WASM_BINARY, AccountId, GenesisConfig, SystemConfig, BalancesConfig};
|
||||
|
||||
pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig>;
|
||||
|
||||
|
||||
@@ -63,8 +63,12 @@ pub fn new_partial(config: &Configuration) -> Result<PartialComponents, ServiceE
|
||||
client.clone(),
|
||||
);
|
||||
|
||||
let import_queue =
|
||||
serai_consensus::import_queue(&task_manager, client.clone(), config.prometheus_registry())?;
|
||||
let import_queue = serai_consensus::import_queue(
|
||||
&task_manager,
|
||||
client.clone(),
|
||||
transaction_pool.clone(),
|
||||
config.prometheus_registry(),
|
||||
)?;
|
||||
|
||||
let select_chain = serai_consensus::TendermintSelectChain::new(backend.clone());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user