Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Update Substrate & Polkadot #563

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
525 changes: 262 additions & 263 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions client/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();

Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions pallets/collator-selection/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ impl pallet_assets::Config for Runtime {

impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
}

construct_runtime! {
Expand Down
8 changes: 4 additions & 4 deletions polkadot-parachains/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -809,7 +809,7 @@ where
parachain_config,
polkadot_config,
id,
|_| Default::default(),
|_| Ok(Default::default()),
statemint_build_import_queue,
|client,
prometheus_registry,
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/statemine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ impl pallet_session::Config for Runtime {

impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/statemint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ impl pallet_session::Config for Runtime {

impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/westmint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ impl pallet_session::Config for Runtime {

impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
}

parameter_types! {
Expand Down
4 changes: 2 additions & 2 deletions test/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down Expand Up @@ -516,7 +516,7 @@ impl TestNodeBuilder {
relay_chain_config,
self.para_id,
self.wrap_announce_block,
|_| Default::default(),
|_| Ok(Default::default()),
self.consensus,
)
.await
Expand Down