Skip to content

Commit 08dfe25

Browse files
SCCSCC
authored andcommitted
fix buuld benchmark failed and run test failed issues
1 parent 63af973 commit 08dfe25

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

node/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ runtime-benchmarks = [
112112
"litmus-parachain-runtime/runtime-benchmarks",
113113
"rococo-parachain-runtime/runtime-benchmarks",
114114
"polkadot-service/runtime-benchmarks",
115+
"polkadot-cli/runtime-benchmarks",
115116
]
116117
try-runtime = [
117118
"litentry-parachain-runtime/try-runtime",
118119
"litmus-parachain-runtime/try-runtime",
119120
"rococo-parachain-runtime/try-runtime",
120121
"polkadot-service/try-runtime",
122+
"polkadot-cli/try-runtime",
121123
]
122124
# allow workers to register without remote attestation for dev purposes
123125
# currently only available on litmus and rococo

runtime/common/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
5656
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
5757

5858
/// We allow for 0.5 of a second of compute with a 12 second average block time.
59-
pub const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND.saturating_div(2);
59+
pub const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND
60+
.saturating_div(2)
61+
.set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64);
6062

6163
pub mod currency {
6264
use primitives::Balance;

runtime/litmus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ runtime-benchmarks = [
204204
"pallet-balances/runtime-benchmarks",
205205
"pallet-bounties/runtime-benchmarks",
206206
# This module returned an error when ran the benchmark, temporarily chose to comment it out
207-
#"pallet-collator-selection/runtime-benchmarks",
207+
# "pallet-collator-selection/runtime-benchmarks",
208208
"pallet-collective/runtime-benchmarks",
209209
"pallet-democracy/runtime-benchmarks",
210210
"pallet-membership/runtime-benchmarks",

0 commit comments

Comments
 (0)