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

Commit d40d451

Browse files
committed
Merge branch 'ao-kusama-enable-dispute-slashes' into ao-zombienet-slashing-test
* ao-kusama-enable-dispute-slashes: ".git/.scripts/bench-bot.sh" runtime kusama-dev runtime_parachains::disputes::slashing kusama: enable dispute slashing Use correct file header for 'benchmark overhead' (#5984) [Substrate Companion] Part 1: add TargetList for validator ranking (#5930) Bump blake2 from 0.10.2 to 0.10.4 (#6019) node/core/pvf: strip some deps (#6016) Bump enumn from 0.1.4 to 0.1.5 (#5938) Co #11976: Enable rust features (#5983) update memory-lru:0.1.1 (#6012) Companion for paritytech/substrate#12219 (#5987) Remove CanAuthorWith trait (#5986) Update cid to 0.8.6 (#5994) Update Westend Trusted Teleporters (#5985) Companion for #11981 (#5915) update weights (sync with v0.9.29) (#5989) remove stale polkadot call filter (#5969) Sync versions with current release (v0.9.29) (#5982)
2 parents 69f9f57 + 1283b05 commit d40d451

File tree

291 files changed

+4423
-4033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+4423
-4033
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ path = "src/main.rs"
66
name = "polkadot"
77
description = "Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework."
88
license = "GPL-3.0-only"
9-
version = "0.9.28"
9+
version = "0.9.29"
1010
authors = ["Parity Technologies <[email protected]>"]
1111
edition = "2021"
1212
rust-version = "1.57.0" # custom profiles

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-cli"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
description = "Polkadot Relay-chain Client Node"
66
edition = "2021"

cli/src/command.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,15 @@ pub fn run() -> Result<()> {
512512
let chain_spec = &runner.config().chain_spec;
513513

514514
match cmd {
515+
#[cfg(not(feature = "runtime-benchmarks"))]
516+
BenchmarkCmd::Storage(_) =>
517+
return Err(sc_cli::Error::Input(
518+
"Compile with --features=runtime-benchmarks \
519+
to enable storage benchmarks."
520+
.into(),
521+
)
522+
.into()),
523+
#[cfg(feature = "runtime-benchmarks")]
515524
BenchmarkCmd::Storage(cmd) => runner.sync_run(|mut config| {
516525
let (client, backend, _, _) = service::new_chain_ops(&mut config, None)?;
517526
let db = backend.expose_db();

core-primitives/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-core-primitives"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

erasure-coding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-erasure-coding"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

erasure-coding/fuzzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "erasure_coding_fuzzer"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

node/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-client"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

node/client/src/benchmarking.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for RemarkBuilder {
4949
fn build(&self, nonce: u32) -> std::result::Result<OpaqueExtrinsic, &'static str> {
5050
with_client! {
5151
self.client.as_ref(), client, {
52-
use runtime::{Call, SystemCall};
52+
use runtime::{RuntimeCall, SystemCall};
5353

54-
let call = Call::System(SystemCall::remark { remark: vec![] });
54+
let call = RuntimeCall::System(SystemCall::remark { remark: vec![] });
5555
let signer = Sr25519Keyring::Bob.pair();
5656

5757
let period = polkadot_runtime_common::BlockHashCount::get().checked_next_power_of_two().map(|c| c / 2).unwrap_or(2) as u64;
@@ -92,9 +92,9 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder {
9292
fn build(&self, nonce: u32) -> std::result::Result<OpaqueExtrinsic, &'static str> {
9393
with_client! {
9494
self.client.as_ref(), client, {
95-
use runtime::{Call, BalancesCall};
95+
use runtime::{RuntimeCall, BalancesCall};
9696

97-
let call = Call::Balances(BalancesCall::transfer_keep_alive {
97+
let call = RuntimeCall::Balances(BalancesCall::transfer_keep_alive {
9898
dest: self.dest.clone().into(),
9999
value: self.value.into(),
100100
});
@@ -113,14 +113,14 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder {
113113
///
114114
/// Should only be used for benchmarking since it makes strong assumptions
115115
/// about the chain state that these calls will be valid for.
116-
trait BenchmarkCallSigner<Call: Encode + Clone, Signer: Pair> {
116+
trait BenchmarkCallSigner<RuntimeCall: Encode + Clone, Signer: Pair> {
117117
/// Signs a call together with the signed extensions of the specific runtime.
118118
///
119119
/// Only works if the current block is the genesis block since the
120120
/// `CheckMortality` check is mocked by using the genesis block.
121121
fn sign_call(
122122
&self,
123-
call: Call,
123+
call: RuntimeCall,
124124
nonce: u32,
125125
current_block: u64,
126126
period: u64,
@@ -130,12 +130,12 @@ trait BenchmarkCallSigner<Call: Encode + Clone, Signer: Pair> {
130130
}
131131

132132
#[cfg(feature = "polkadot")]
133-
impl BenchmarkCallSigner<polkadot_runtime::Call, sp_core::sr25519::Pair>
133+
impl BenchmarkCallSigner<polkadot_runtime::RuntimeCall, sp_core::sr25519::Pair>
134134
for FullClient<polkadot_runtime::RuntimeApi, PolkadotExecutorDispatch>
135135
{
136136
fn sign_call(
137137
&self,
138-
call: polkadot_runtime::Call,
138+
call: polkadot_runtime::RuntimeCall,
139139
nonce: u32,
140140
current_block: u64,
141141
period: u64,
@@ -186,12 +186,12 @@ impl BenchmarkCallSigner<polkadot_runtime::Call, sp_core::sr25519::Pair>
186186
}
187187

188188
#[cfg(feature = "westend")]
189-
impl BenchmarkCallSigner<westend_runtime::Call, sp_core::sr25519::Pair>
189+
impl BenchmarkCallSigner<westend_runtime::RuntimeCall, sp_core::sr25519::Pair>
190190
for FullClient<westend_runtime::RuntimeApi, WestendExecutorDispatch>
191191
{
192192
fn sign_call(
193193
&self,
194-
call: westend_runtime::Call,
194+
call: westend_runtime::RuntimeCall,
195195
nonce: u32,
196196
current_block: u64,
197197
period: u64,
@@ -240,12 +240,12 @@ impl BenchmarkCallSigner<westend_runtime::Call, sp_core::sr25519::Pair>
240240
}
241241

242242
#[cfg(feature = "kusama")]
243-
impl BenchmarkCallSigner<kusama_runtime::Call, sp_core::sr25519::Pair>
243+
impl BenchmarkCallSigner<kusama_runtime::RuntimeCall, sp_core::sr25519::Pair>
244244
for FullClient<kusama_runtime::RuntimeApi, KusamaExecutorDispatch>
245245
{
246246
fn sign_call(
247247
&self,
248-
call: kusama_runtime::Call,
248+
call: kusama_runtime::RuntimeCall,
249249
nonce: u32,
250250
current_block: u64,
251251
period: u64,
@@ -294,12 +294,12 @@ impl BenchmarkCallSigner<kusama_runtime::Call, sp_core::sr25519::Pair>
294294
}
295295

296296
#[cfg(feature = "rococo")]
297-
impl BenchmarkCallSigner<rococo_runtime::Call, sp_core::sr25519::Pair>
297+
impl BenchmarkCallSigner<rococo_runtime::RuntimeCall, sp_core::sr25519::Pair>
298298
for FullClient<rococo_runtime::RuntimeApi, RococoExecutorDispatch>
299299
{
300300
fn sign_call(
301301
&self,
302-
call: rococo_runtime::Call,
302+
call: rococo_runtime::RuntimeCall,
303303
nonce: u32,
304304
current_block: u64,
305305
period: u64,

node/collation-generation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polkadot-node-collation-generation"
3-
version = "0.9.28"
3+
version = "0.9.29"
44
authors = ["Parity Technologies <[email protected]>"]
55
edition = "2021"
66

0 commit comments

Comments
 (0)