mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Update Substrate & Polkadot (#563)
This commit is contained in:
Generated
+262
-263
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ use sp_runtime::{
|
||||
traits::{Block as BlockT, HashFor, Header as HeaderT},
|
||||
};
|
||||
|
||||
use polkadot_node_primitives::{SignedFullStatement, Statement};
|
||||
use polkadot_node_primitives::{SignedFullStatement, Statement, CollationSecondedSignal};
|
||||
use polkadot_parachain::primitives::HeadData;
|
||||
use polkadot_primitives::v1::{
|
||||
Block as PBlock, Hash as PHash, CandidateReceipt, CompactStatement, Id as ParaId,
|
||||
@@ -530,7 +530,7 @@ impl<Block: BlockT> WaitToAnnounce<Block> {
|
||||
pub fn wait_to_announce(
|
||||
&mut self,
|
||||
block_hash: <Block as BlockT>::Hash,
|
||||
signed_stmt_recv: oneshot::Receiver<SignedFullStatement>,
|
||||
signed_stmt_recv: oneshot::Receiver<CollationSecondedSignal>,
|
||||
) {
|
||||
let announce_block = self.announce_block.clone();
|
||||
|
||||
@@ -557,10 +557,10 @@ impl<Block: BlockT> WaitToAnnounce<Block> {
|
||||
async fn wait_to_announce<Block: BlockT>(
|
||||
block_hash: <Block as BlockT>::Hash,
|
||||
announce_block: Arc<dyn Fn(Block::Hash, Option<Vec<u8>>) + Send + Sync>,
|
||||
signed_stmt_recv: oneshot::Receiver<SignedFullStatement>,
|
||||
signed_stmt_recv: oneshot::Receiver<CollationSecondedSignal>,
|
||||
) {
|
||||
let statement = match signed_stmt_recv.await {
|
||||
Ok(s) => s,
|
||||
Ok(s) => s.statement,
|
||||
Err(_) => {
|
||||
tracing::debug!(
|
||||
target: "cumulus-network",
|
||||
|
||||
@@ -126,6 +126,7 @@ impl pallet_timestamp::Config for Test {
|
||||
|
||||
impl pallet_aura::Config for Test {
|
||||
type AuthorityId = sp_consensus_aura::sr25519::AuthorityId;
|
||||
type DisabledValidators = ();
|
||||
}
|
||||
|
||||
sp_runtime::impl_opaque_keys! {
|
||||
|
||||
@@ -427,6 +427,7 @@ impl pallet_assets::Config for Runtime {
|
||||
|
||||
impl pallet_aura::Config for Runtime {
|
||||
type AuthorityId = AuraId;
|
||||
type DisabledValidators = ();
|
||||
}
|
||||
|
||||
construct_runtime! {
|
||||
|
||||
@@ -223,7 +223,7 @@ where
|
||||
Executor: sc_executor::NativeExecutionDispatch + 'static,
|
||||
RB: Fn(
|
||||
Arc<TFullClient<Block, RuntimeApi, Executor>>,
|
||||
) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
|
||||
) -> Result<jsonrpc_core::IoHandler<sc_rpc::Metadata>, sc_service::Error>
|
||||
+ Send
|
||||
+ 'static,
|
||||
BIQ: FnOnce(
|
||||
@@ -418,7 +418,7 @@ pub async fn start_rococo_parachain_node(
|
||||
parachain_config,
|
||||
polkadot_config,
|
||||
id,
|
||||
|_| Default::default(),
|
||||
|_| Ok(Default::default()),
|
||||
rococo_parachain_build_import_queue,
|
||||
|client,
|
||||
prometheus_registry,
|
||||
@@ -536,7 +536,7 @@ pub async fn start_shell_node(
|
||||
parachain_config,
|
||||
polkadot_config,
|
||||
id,
|
||||
|_| Default::default(),
|
||||
|_| Ok(Default::default()),
|
||||
shell_build_import_queue,
|
||||
|client,
|
||||
prometheus_registry,
|
||||
@@ -809,7 +809,7 @@ where
|
||||
parachain_config,
|
||||
polkadot_config,
|
||||
id,
|
||||
|_| Default::default(),
|
||||
|_| Ok(Default::default()),
|
||||
statemint_build_import_queue,
|
||||
|client,
|
||||
prometheus_registry,
|
||||
|
||||
@@ -624,6 +624,7 @@ impl pallet_session::Config for Runtime {
|
||||
|
||||
impl pallet_aura::Config for Runtime {
|
||||
type AuthorityId = AuraId;
|
||||
type DisabledValidators = ();
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -592,6 +592,7 @@ impl pallet_session::Config for Runtime {
|
||||
|
||||
impl pallet_aura::Config for Runtime {
|
||||
type AuthorityId = AuraId;
|
||||
type DisabledValidators = ();
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -590,6 +590,7 @@ impl pallet_session::Config for Runtime {
|
||||
|
||||
impl pallet_aura::Config for Runtime {
|
||||
type AuthorityId = AuraId;
|
||||
type DisabledValidators = ();
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -162,7 +162,7 @@ async fn start_node_impl<RB>(
|
||||
where
|
||||
RB: Fn(
|
||||
Arc<TFullClient<Block, RuntimeApi, RuntimeExecutor>>,
|
||||
) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
|
||||
) -> Result<jsonrpc_core::IoHandler<sc_rpc::Metadata>, sc_service::Error>
|
||||
+ Send
|
||||
+ 'static,
|
||||
{
|
||||
@@ -516,7 +516,7 @@ impl TestNodeBuilder {
|
||||
relay_chain_config,
|
||||
self.para_id,
|
||||
self.wrap_announce_block,
|
||||
|_| Default::default(),
|
||||
|_| Ok(Default::default()),
|
||||
self.consensus,
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user