Skip to content

Commit 4f93668

Browse files
authored
Update Substrate & Polkadot (paritytech#563)
1 parent 47b368e commit 4f93668

File tree

9 files changed

+277
-273
lines changed

9 files changed

+277
-273
lines changed

Cargo.lock

+262-263
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/network/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use sp_runtime::{
3333
traits::{Block as BlockT, HashFor, Header as HeaderT},
3434
};
3535

36-
use polkadot_node_primitives::{SignedFullStatement, Statement};
36+
use polkadot_node_primitives::{SignedFullStatement, Statement, CollationSecondedSignal};
3737
use polkadot_parachain::primitives::HeadData;
3838
use polkadot_primitives::v1::{
3939
Block as PBlock, Hash as PHash, CandidateReceipt, CompactStatement, Id as ParaId,
@@ -530,7 +530,7 @@ impl<Block: BlockT> WaitToAnnounce<Block> {
530530
pub fn wait_to_announce(
531531
&mut self,
532532
block_hash: <Block as BlockT>::Hash,
533-
signed_stmt_recv: oneshot::Receiver<SignedFullStatement>,
533+
signed_stmt_recv: oneshot::Receiver<CollationSecondedSignal>,
534534
) {
535535
let announce_block = self.announce_block.clone();
536536

@@ -557,10 +557,10 @@ impl<Block: BlockT> WaitToAnnounce<Block> {
557557
async fn wait_to_announce<Block: BlockT>(
558558
block_hash: <Block as BlockT>::Hash,
559559
announce_block: Arc<dyn Fn(Block::Hash, Option<Vec<u8>>) + Send + Sync>,
560-
signed_stmt_recv: oneshot::Receiver<SignedFullStatement>,
560+
signed_stmt_recv: oneshot::Receiver<CollationSecondedSignal>,
561561
) {
562562
let statement = match signed_stmt_recv.await {
563-
Ok(s) => s,
563+
Ok(s) => s.statement,
564564
Err(_) => {
565565
tracing::debug!(
566566
target: "cumulus-network",

pallets/collator-selection/src/mock.rs

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ impl pallet_timestamp::Config for Test {
126126

127127
impl pallet_aura::Config for Test {
128128
type AuthorityId = sp_consensus_aura::sr25519::AuthorityId;
129+
type DisabledValidators = ();
129130
}
130131

131132
sp_runtime::impl_opaque_keys! {

polkadot-parachains/rococo/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ impl pallet_assets::Config for Runtime {
427427

428428
impl pallet_aura::Config for Runtime {
429429
type AuthorityId = AuraId;
430+
type DisabledValidators = ();
430431
}
431432

432433
construct_runtime! {

polkadot-parachains/src/service.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ where
223223
Executor: sc_executor::NativeExecutionDispatch + 'static,
224224
RB: Fn(
225225
Arc<TFullClient<Block, RuntimeApi, Executor>>,
226-
) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
226+
) -> Result<jsonrpc_core::IoHandler<sc_rpc::Metadata>, sc_service::Error>
227227
+ Send
228228
+ 'static,
229229
BIQ: FnOnce(
@@ -418,7 +418,7 @@ pub async fn start_rococo_parachain_node(
418418
parachain_config,
419419
polkadot_config,
420420
id,
421-
|_| Default::default(),
421+
|_| Ok(Default::default()),
422422
rococo_parachain_build_import_queue,
423423
|client,
424424
prometheus_registry,
@@ -536,7 +536,7 @@ pub async fn start_shell_node(
536536
parachain_config,
537537
polkadot_config,
538538
id,
539-
|_| Default::default(),
539+
|_| Ok(Default::default()),
540540
shell_build_import_queue,
541541
|client,
542542
prometheus_registry,
@@ -809,7 +809,7 @@ where
809809
parachain_config,
810810
polkadot_config,
811811
id,
812-
|_| Default::default(),
812+
|_| Ok(Default::default()),
813813
statemint_build_import_queue,
814814
|client,
815815
prometheus_registry,

polkadot-parachains/statemine/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ impl pallet_session::Config for Runtime {
624624

625625
impl pallet_aura::Config for Runtime {
626626
type AuthorityId = AuraId;
627+
type DisabledValidators = ();
627628
}
628629

629630
parameter_types! {

polkadot-parachains/statemint/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ impl pallet_session::Config for Runtime {
592592

593593
impl pallet_aura::Config for Runtime {
594594
type AuthorityId = AuraId;
595+
type DisabledValidators = ();
595596
}
596597

597598
parameter_types! {

polkadot-parachains/westmint/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ impl pallet_session::Config for Runtime {
590590

591591
impl pallet_aura::Config for Runtime {
592592
type AuthorityId = AuraId;
593+
type DisabledValidators = ();
593594
}
594595

595596
parameter_types! {

test/service/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async fn start_node_impl<RB>(
162162
where
163163
RB: Fn(
164164
Arc<TFullClient<Block, RuntimeApi, RuntimeExecutor>>,
165-
) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
165+
) -> Result<jsonrpc_core::IoHandler<sc_rpc::Metadata>, sc_service::Error>
166166
+ Send
167167
+ 'static,
168168
{
@@ -516,7 +516,7 @@ impl TestNodeBuilder {
516516
relay_chain_config,
517517
self.para_id,
518518
self.wrap_announce_block,
519-
|_| Default::default(),
519+
|_| Ok(Default::default()),
520520
self.consensus,
521521
)
522522
.await

0 commit comments

Comments
 (0)