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

Commit 736ec15

Browse files
committed
Merge branch 'master' into ao-malus-dont-panic
* master: bump timestamp script to v0.2 (#6954) Subsystem channel tweaks (#6905) Companion for #13683 (#6944)
2 parents 01b7a53 + 03ed777 commit 736ec15

19 files changed

Lines changed: 240 additions & 259 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ include:
202202
- scripts/ci/gitlab/pipeline/zombienet.yml
203203
# timestamp handler
204204
- project: parity/infrastructure/ci_cd/shared
205-
ref: v0.1
205+
ref: v0.2
206206
file: /common/timestamp.yml
207207

208208
#### stage: .post

Cargo.lock

Lines changed: 187 additions & 187 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/core/backing/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use polkadot_primitives::{
3434
CandidateDescriptor, CollatorId, GroupRotationInfo, HeadData, PersistedValidationData,
3535
PvfExecTimeoutKind, ScheduledCore,
3636
};
37-
use sp_application_crypto::AppKey;
37+
use sp_application_crypto::AppCrypto;
3838
use sp_keyring::Sr25519Keyring;
3939
use sp_keystore::Keystore;
4040
use sp_tracing as _;

node/core/dispute-coordinator/src/tests.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use polkadot_node_subsystem::{
4545

4646
use polkadot_node_subsystem_util::TimeoutExt;
4747
use sc_keystore::LocalKeystore;
48-
use sp_application_crypto::AppKey;
48+
use sp_application_crypto::AppCrypto;
4949
use sp_core::{sr25519::Pair, testing::TaskExecutor, Pair as PairT};
5050
use sp_keyring::Sr25519Keyring;
5151
use sp_keystore::{Keystore, KeystorePtr};
@@ -562,18 +562,18 @@ impl TestState {
562562
let validator_id = self.validators[index.0 as usize].public();
563563

564564
let payload = ApprovalVote(candidate_hash).signing_payload(session);
565-
let signature =
566-
Keystore::sign_with(&*keystore, ValidatorId::ID, &validator_id.into(), &payload[..])
567-
.ok()
568-
.flatten()
569-
.unwrap();
565+
let signature = keystore
566+
.sr25519_sign(ValidatorId::ID, &validator_id, &payload)
567+
.ok()
568+
.flatten()
569+
.unwrap();
570570

571571
SignedDisputeStatement::new_unchecked_from_trusted_source(
572572
DisputeStatement::Valid(ValidDisputeStatementKind::ApprovalChecking),
573573
candidate_hash,
574574
session,
575575
validator_id.into(),
576-
signature.try_into().unwrap(),
576+
signature.into(),
577577
)
578578
}
579579

node/core/provisioner/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn scheduled_core(id: u32) -> ScheduledCore {
5757
mod select_availability_bitfields {
5858
use super::{super::*, default_bitvec, occupied_core};
5959
use polkadot_primitives::{ScheduledCore, SigningContext, ValidatorId, ValidatorIndex};
60-
use sp_application_crypto::AppKey;
60+
use sp_application_crypto::AppCrypto;
6161
use sp_keystore::{testing::MemoryKeystore, Keystore, KeystorePtr};
6262
use std::sync::Arc;
6363

node/core/pvf-checker/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use polkadot_primitives::{
2929
BlockNumber, Hash, Header, PvfCheckStatement, SessionIndex, ValidationCode, ValidationCodeHash,
3030
ValidatorId,
3131
};
32-
use sp_application_crypto::AppKey;
32+
use sp_application_crypto::AppCrypto;
3333
use sp_core::testing::TaskExecutor;
3434
use sp_keyring::Sr25519Keyring;
3535
use sp_keystore::Keystore;

node/network/bitfield-distribution/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use polkadot_node_subsystem_test_helpers::make_subsystem_context;
3333
use polkadot_node_subsystem_util::TimeoutExt;
3434
use polkadot_primitives::{AvailabilityBitfield, Signed, ValidatorIndex};
3535
use rand_chacha::ChaCha12Rng;
36-
use sp_application_crypto::AppKey;
36+
use sp_application_crypto::AppCrypto;
3737
use sp_authority_discovery::AuthorityPair as AuthorityDiscoveryPair;
3838
use sp_core::Pair as PairT;
3939
use sp_keyring::Sr25519Keyring;

node/network/bridge/src/rx/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ where
652652
)
653653
.remote_handle();
654654

655-
ctx.spawn("network-bridge-in-network-worker", Box::pin(task))?;
655+
ctx.spawn_blocking("network-bridge-in-network-worker", Box::pin(task))?;
656656
futures::pin_mut!(network_event_handler);
657657

658658
let orchestra_signal_handler = run_incoming_orchestra_signals(

node/network/dispute-distribution/src/tests/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use lazy_static::lazy_static;
2828

2929
use polkadot_node_network_protocol::{authority_discovery::AuthorityDiscovery, PeerId};
3030
use sc_keystore::LocalKeystore;
31-
use sp_application_crypto::AppKey;
31+
use sp_application_crypto::AppCrypto;
3232
use sp_keyring::Sr25519Keyring;
3333
use sp_keystore::{Keystore, KeystorePtr};
3434

node/network/gossip-support/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use rand::{seq::SliceRandom as _, SeedableRng};
3636
use rand_chacha::ChaCha20Rng;
3737

3838
use sc_network::Multiaddr;
39-
use sp_application_crypto::{AppKey, ByteArray};
39+
use sp_application_crypto::{AppCrypto, ByteArray};
4040
use sp_keystore::{Keystore, KeystorePtr};
4141

4242
use polkadot_node_network_protocol::{

0 commit comments

Comments
 (0)