Skip to content

Commit 2676db8

Browse files
authored
chore(upgrade): v1.7.2 to v1.8.0 (#2081)
For more details, please refer to: [Release Notes](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.8.0) #1894
1 parent 4822f39 commit 2676db8

37 files changed

+1793
-1457
lines changed

.github/workflows/verify-pr-commit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,14 @@ jobs:
226226
steps:
227227
- name: Check Out Repo
228228
uses: actions/checkout@v4
229-
- name: Build Docs
229+
- name: Install Nightly Toolchain
230+
run: rustup toolchain install nightly-2024-03-01
231+
- name: Add Required Components
230232
run: |
231233
rustup target add wasm32-unknown-unknown --toolchain nightly-2024-03-01
234+
rustup component add rust-src --toolchain nightly-2024-03-01
235+
- name: Build Docs
236+
run: |
232237
RUSTDOCFLAGS="--enable-index-page --check -Zunstable-options" cargo +nightly-2024-03-01 doc --no-deps --features frequency
233238
234239
verify-rust-packages-and-deps:

Cargo.lock

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

Cargo.toml

Lines changed: 99 additions & 99 deletions
Large diffs are not rendered by default.

e2e/capacity/capacity_rpc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Capacity RPC', function () {
7272
const { baseFee, lenFee, adjustedWeightFee } = feeDetails.inclusionFee.toJSON() as any;
7373
const baseFeeSnapshot = 177812;
7474
assert(
75-
Math.abs(baseFee - baseFeeSnapshot) < 10_000,
75+
Math.abs(baseFee - baseFeeSnapshot) < 50_000,
7676
'The base fee appears to be wrong or have changed more than expected'
7777
);
7878
assert(Math.abs(lenFee - 1170000) < 100, 'The len fee appears to be wrong or have changed more than expected');

node/cli/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cumulus-primitives-core = { workspace = true }
6363
substrate-build-script-utils = { workspace = true }
6464

6565
[features]
66-
std = ["sp-io/std", "sp-api/std", "frame-support/std"]
66+
std = ["sp-io/std", "sp-api/std", "frame-support/std", "sp-runtime/std", "sp-core/std"]
6767
cli = [
6868
"frequency-service",
6969
"sp-core",
@@ -77,12 +77,14 @@ default = ["std", "cli"]
7777
runtime-benchmarks = [
7878
"polkadot-cli/runtime-benchmarks",
7979
"frequency-runtime/runtime-benchmarks",
80+
"sc-service?/runtime-benchmarks",
8081
"frame-benchmarking-cli/runtime-benchmarks",
82+
"sp-runtime/runtime-benchmarks",
8183
]
8284
try-runtime = [
8385
"frequency-service/try-runtime",
84-
"try-runtime-cli",
8586
"try-runtime-cli/try-runtime",
87+
"sp-runtime/try-runtime"
8688
]
8789
on-chain-release-build = ["sp-api/disable-logging"]
8890
frequency = ["frequency-service/frequency"]

node/cli/src/command.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use sc_cli::{
1515
NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli,
1616
};
1717
use sc_service::config::{BasePath, PrometheusConfig};
18+
use sp_runtime::traits::HashingFor;
1819

1920
enum ChainIdentity {
2021
Frequency,
@@ -337,7 +338,7 @@ pub fn run() -> Result<()> {
337338
match cmd {
338339
BenchmarkCmd::Pallet(cmd) =>
339340
if cfg!(feature = "runtime-benchmarks") {
340-
runner.sync_run(|config| cmd.run::<Block, ()>(config))
341+
runner.sync_run(|config| cmd.run::<HashingFor<Block>, ()>(config))
341342
} else {
342343
return Err("Benchmarking wasn't enabled when building the node. \
343344
You can enable it with `--features runtime-benchmarks`."

node/service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ scale-info = { workspace = true, features = ["derive"] }
117117

118118
[features]
119119
default = ["std"]
120-
std = ["sp-api/std"]
120+
std = ["sp-api/std", "sp-core/std"]
121121
runtime-benchmarks = [
122122
"frequency-runtime/runtime-benchmarks",
123123
"polkadot-service/runtime-benchmarks",

node/service/src/service.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,6 @@ fn start_consensus(
463463
// NOTE: because we use Aura here explicitly, we can use `CollatorSybilResistance::Resistant`
464464
// when starting the network.
465465

466-
let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?;
467-
468466
let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording(
469467
task_manager.spawn_handle(),
470468
client.clone(),
@@ -500,7 +498,6 @@ fn start_consensus(
500498
collator_key,
501499
para_id,
502500
overseer_handle,
503-
slot_duration,
504501
relay_chain_slot_duration,
505502
proposer,
506503
collator_service,

pallets/capacity/src/weights.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//! Autogenerated weights for `pallet_capacity`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5-
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! WORST CASE MAP SIZE: `1000000`
7-
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7+
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
88
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
99
1010
// Executed Command:
@@ -61,8 +61,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
6161
// Proof Size summary in bytes:
6262
// Measured: `174`
6363
// Estimated: `6249`
64-
// Minimum execution time: 37_004_000 picoseconds.
65-
Weight::from_parts(37_516_000, 6249)
64+
// Minimum execution time: 39_381_000 picoseconds.
65+
Weight::from_parts(40_678_000, 6249)
6666
.saturating_add(T::DbWeight::get().reads(7_u64))
6767
.saturating_add(T::DbWeight::get().writes(4_u64))
6868
}
@@ -78,8 +78,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
7878
// Proof Size summary in bytes:
7979
// Measured: `285`
8080
// Estimated: `6249`
81-
// Minimum execution time: 25_485_000 picoseconds.
82-
Weight::from_parts(26_449_000, 6249)
81+
// Minimum execution time: 27_182_000 picoseconds.
82+
Weight::from_parts(27_758_000, 6249)
8383
.saturating_add(T::DbWeight::get().reads(4_u64))
8484
.saturating_add(T::DbWeight::get().writes(2_u64))
8585
}
@@ -91,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
9191
// Proof Size summary in bytes:
9292
// Measured: `0`
9393
// Estimated: `2974`
94-
// Minimum execution time: 2_327_000 picoseconds.
95-
Weight::from_parts(2_446_000, 2974)
94+
// Minimum execution time: 2_302_000 picoseconds.
95+
Weight::from_parts(2_416_000, 2974)
9696
.saturating_add(T::DbWeight::get().reads(2_u64))
9797
.saturating_add(T::DbWeight::get().writes(1_u64))
9898
}
@@ -108,8 +108,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
108108
// Proof Size summary in bytes:
109109
// Measured: `271`
110110
// Estimated: `5071`
111-
// Minimum execution time: 24_044_000 picoseconds.
112-
Weight::from_parts(25_140_000, 5071)
111+
// Minimum execution time: 25_138_000 picoseconds.
112+
Weight::from_parts(25_718_000, 5071)
113113
.saturating_add(T::DbWeight::get().reads(4_u64))
114114
.saturating_add(T::DbWeight::get().writes(4_u64))
115115
}
@@ -119,8 +119,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
119119
// Proof Size summary in bytes:
120120
// Measured: `0`
121121
// Estimated: `0`
122-
// Minimum execution time: 4_537_000 picoseconds.
123-
Weight::from_parts(4_889_000, 0)
122+
// Minimum execution time: 4_067_000 picoseconds.
123+
Weight::from_parts(4_482_000, 0)
124124
.saturating_add(T::DbWeight::get().writes(1_u64))
125125
}
126126
}
@@ -145,8 +145,8 @@ impl WeightInfo for () {
145145
// Proof Size summary in bytes:
146146
// Measured: `174`
147147
// Estimated: `6249`
148-
// Minimum execution time: 37_004_000 picoseconds.
149-
Weight::from_parts(37_516_000, 6249)
148+
// Minimum execution time: 39_381_000 picoseconds.
149+
Weight::from_parts(40_678_000, 6249)
150150
.saturating_add(RocksDbWeight::get().reads(7_u64))
151151
.saturating_add(RocksDbWeight::get().writes(4_u64))
152152
}
@@ -162,8 +162,8 @@ impl WeightInfo for () {
162162
// Proof Size summary in bytes:
163163
// Measured: `285`
164164
// Estimated: `6249`
165-
// Minimum execution time: 25_485_000 picoseconds.
166-
Weight::from_parts(26_449_000, 6249)
165+
// Minimum execution time: 27_182_000 picoseconds.
166+
Weight::from_parts(27_758_000, 6249)
167167
.saturating_add(RocksDbWeight::get().reads(4_u64))
168168
.saturating_add(RocksDbWeight::get().writes(2_u64))
169169
}
@@ -175,8 +175,8 @@ impl WeightInfo for () {
175175
// Proof Size summary in bytes:
176176
// Measured: `0`
177177
// Estimated: `2974`
178-
// Minimum execution time: 2_327_000 picoseconds.
179-
Weight::from_parts(2_446_000, 2974)
178+
// Minimum execution time: 2_302_000 picoseconds.
179+
Weight::from_parts(2_416_000, 2974)
180180
.saturating_add(RocksDbWeight::get().reads(2_u64))
181181
.saturating_add(RocksDbWeight::get().writes(1_u64))
182182
}
@@ -192,8 +192,8 @@ impl WeightInfo for () {
192192
// Proof Size summary in bytes:
193193
// Measured: `271`
194194
// Estimated: `5071`
195-
// Minimum execution time: 24_044_000 picoseconds.
196-
Weight::from_parts(25_140_000, 5071)
195+
// Minimum execution time: 25_138_000 picoseconds.
196+
Weight::from_parts(25_718_000, 5071)
197197
.saturating_add(RocksDbWeight::get().reads(4_u64))
198198
.saturating_add(RocksDbWeight::get().writes(4_u64))
199199
}
@@ -203,8 +203,8 @@ impl WeightInfo for () {
203203
// Proof Size summary in bytes:
204204
// Measured: `0`
205205
// Estimated: `0`
206-
// Minimum execution time: 4_537_000 picoseconds.
207-
Weight::from_parts(4_889_000, 0)
206+
// Minimum execution time: 4_067_000 picoseconds.
207+
Weight::from_parts(4_482_000, 0)
208208
.saturating_add(RocksDbWeight::get().writes(1_u64))
209209
}
210210
}

pallets/frequency-tx-payment/src/rpc/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ sc-client-api = { workspace = true }
3333
[features]
3434
default = ["std"]
3535
std = [
36+
"sp-core/std",
3637
"parity-scale-codec/std",
3738
"sp-api/std",
3839
"sp-runtime/std",

pallets/frequency-tx-payment/src/weights.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//! Autogenerated weights for `pallet_frequency_tx_payment`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5-
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! WORST CASE MAP SIZE: `1000000`
7-
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7+
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
88
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
99
1010
// Executed Command:
@@ -44,18 +44,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
4444
// Proof Size summary in bytes:
4545
// Measured: `0`
4646
// Estimated: `0`
47-
// Minimum execution time: 3_236_000 picoseconds.
48-
Weight::from_parts(3_421_000, 0)
47+
// Minimum execution time: 3_330_000 picoseconds.
48+
Weight::from_parts(3_511_000, 0)
4949
}
5050
/// The range of component `n` is `[0, 10]`.
5151
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
5252
// Proof Size summary in bytes:
5353
// Measured: `0`
5454
// Estimated: `0`
55-
// Minimum execution time: 5_256_000 picoseconds.
56-
Weight::from_parts(6_282_904, 0)
57-
// Standard Error: 13_079
58-
.saturating_add(Weight::from_parts(3_083_520, 0).saturating_mul(n.into()))
55+
// Minimum execution time: 5_168_000 picoseconds.
56+
Weight::from_parts(6_149_649, 0)
57+
// Standard Error: 10_051
58+
.saturating_add(Weight::from_parts(3_092_193, 0).saturating_mul(n.into()))
5959
}
6060
}
6161

@@ -65,18 +65,18 @@ impl WeightInfo for () {
6565
// Proof Size summary in bytes:
6666
// Measured: `0`
6767
// Estimated: `0`
68-
// Minimum execution time: 3_236_000 picoseconds.
69-
Weight::from_parts(3_421_000, 0)
68+
// Minimum execution time: 3_330_000 picoseconds.
69+
Weight::from_parts(3_511_000, 0)
7070
}
7171
/// The range of component `n` is `[0, 10]`.
7272
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
7373
// Proof Size summary in bytes:
7474
// Measured: `0`
7575
// Estimated: `0`
76-
// Minimum execution time: 5_256_000 picoseconds.
77-
Weight::from_parts(6_282_904, 0)
78-
// Standard Error: 13_079
79-
.saturating_add(Weight::from_parts(3_083_520, 0).saturating_mul(n.into()))
76+
// Minimum execution time: 5_168_000 picoseconds.
77+
Weight::from_parts(6_149_649, 0)
78+
// Standard Error: 10_051
79+
.saturating_add(Weight::from_parts(3_092_193, 0).saturating_mul(n.into()))
8080
}
8181
}
8282

pallets/handles/src/weights.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//! Autogenerated weights for `pallet_handles`
33
//!
44
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5-
//! DATE: 2024-07-11, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
5+
//! DATE: 2024-07-22, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
66
//! WORST CASE MAP SIZE: `1000000`
7-
//! HOSTNAME: `ip-10-173-5-189`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
7+
//! HOSTNAME: `ip-10-173-10-212`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
88
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("frequency-bench")`, DB CACHE: `1024`
99
1010
// Executed Command:
@@ -54,10 +54,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
5454
// Proof Size summary in bytes:
5555
// Measured: `116`
5656
// Estimated: `5009`
57-
// Minimum execution time: 65_766_000 picoseconds.
58-
Weight::from_parts(67_197_664, 5009)
59-
// Standard Error: 7_700
60-
.saturating_add(Weight::from_parts(93_257, 0).saturating_mul(b.into()))
57+
// Minimum execution time: 64_491_000 picoseconds.
58+
Weight::from_parts(66_067_584, 5009)
59+
// Standard Error: 8_565
60+
.saturating_add(Weight::from_parts(107_320, 0).saturating_mul(b.into()))
6161
.saturating_add(T::DbWeight::get().reads(3_u64))
6262
.saturating_add(T::DbWeight::get().writes(3_u64))
6363
}
@@ -74,10 +74,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
7474
// Proof Size summary in bytes:
7575
// Measured: `222 + b * (1 ±0)`
7676
// Estimated: `5009`
77-
// Minimum execution time: 73_836_000 picoseconds.
78-
Weight::from_parts(75_189_512, 5009)
79-
// Standard Error: 8_314
80-
.saturating_add(Weight::from_parts(177_972, 0).saturating_mul(b.into()))
77+
// Minimum execution time: 72_719_000 picoseconds.
78+
Weight::from_parts(73_627_821, 5009)
79+
// Standard Error: 8_127
80+
.saturating_add(Weight::from_parts(188_421, 0).saturating_mul(b.into()))
8181
.saturating_add(T::DbWeight::get().reads(3_u64))
8282
.saturating_add(T::DbWeight::get().writes(4_u64))
8383
}
@@ -91,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
9191
// Proof Size summary in bytes:
9292
// Measured: `231`
9393
// Estimated: `5009`
94-
// Minimum execution time: 20_598_000 picoseconds.
95-
Weight::from_parts(21_064_000, 5009)
94+
// Minimum execution time: 19_724_000 picoseconds.
95+
Weight::from_parts(20_448_000, 5009)
9696
.saturating_add(T::DbWeight::get().reads(2_u64))
9797
.saturating_add(T::DbWeight::get().writes(2_u64))
9898
}
@@ -113,10 +113,10 @@ impl WeightInfo for () {
113113
// Proof Size summary in bytes:
114114
// Measured: `116`
115115
// Estimated: `5009`
116-
// Minimum execution time: 65_766_000 picoseconds.
117-
Weight::from_parts(67_197_664, 5009)
118-
// Standard Error: 7_700
119-
.saturating_add(Weight::from_parts(93_257, 0).saturating_mul(b.into()))
116+
// Minimum execution time: 64_491_000 picoseconds.
117+
Weight::from_parts(66_067_584, 5009)
118+
// Standard Error: 8_565
119+
.saturating_add(Weight::from_parts(107_320, 0).saturating_mul(b.into()))
120120
.saturating_add(RocksDbWeight::get().reads(3_u64))
121121
.saturating_add(RocksDbWeight::get().writes(3_u64))
122122
}
@@ -133,10 +133,10 @@ impl WeightInfo for () {
133133
// Proof Size summary in bytes:
134134
// Measured: `222 + b * (1 ±0)`
135135
// Estimated: `5009`
136-
// Minimum execution time: 73_836_000 picoseconds.
137-
Weight::from_parts(75_189_512, 5009)
138-
// Standard Error: 8_314
139-
.saturating_add(Weight::from_parts(177_972, 0).saturating_mul(b.into()))
136+
// Minimum execution time: 72_719_000 picoseconds.
137+
Weight::from_parts(73_627_821, 5009)
138+
// Standard Error: 8_127
139+
.saturating_add(Weight::from_parts(188_421, 0).saturating_mul(b.into()))
140140
.saturating_add(RocksDbWeight::get().reads(3_u64))
141141
.saturating_add(RocksDbWeight::get().writes(4_u64))
142142
}
@@ -150,8 +150,8 @@ impl WeightInfo for () {
150150
// Proof Size summary in bytes:
151151
// Measured: `231`
152152
// Estimated: `5009`
153-
// Minimum execution time: 20_598_000 picoseconds.
154-
Weight::from_parts(21_064_000, 5009)
153+
// Minimum execution time: 19_724_000 picoseconds.
154+
Weight::from_parts(20_448_000, 5009)
155155
.saturating_add(RocksDbWeight::get().reads(2_u64))
156156
.saturating_add(RocksDbWeight::get().writes(2_u64))
157157
}

0 commit comments

Comments
 (0)