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

Commit

Permalink
Merge branch 'master' of github.com:paritytech/polkadot into kiz-comp…
Browse files Browse the repository at this point in the history
…-validator-in-bags
  • Loading branch information
kianenigma committed Mar 23, 2022
2 parents bfa88e2 + 1ec8f9e commit bc93fa5
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 179 deletions.
346 changes: 177 additions & 169 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node/core/pvf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "bin/puppet_worker.rs"

[dependencies]
always-assert = "0.1"
async-std = { version = "1.10.0", features = ["attributes"] }
async-std = { version = "1.11.0", features = ["attributes"] }
async-process = "1.3.0"
assert_matches = "1.4.0"
futures = "0.3.21"
Expand Down
1 change: 1 addition & 0 deletions node/core/pvf/tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ impl TestHost {
}

#[async_std::test]
#[ignore]
async fn terminates_on_timeout() {
let host = TestHost::new();

Expand Down
2 changes: 1 addition & 1 deletion node/jaeger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
description = "Polkadot Jaeger primitives, but equally useful for Grafana/Tempo"

[dependencies]
async-std = "1.8.0"
async-std = "1.11.0"
mick-jaeger = "0.1.8"
lazy_static = "1.4"
parking_lot = "0.12.0"
Expand Down
2 changes: 1 addition & 1 deletion node/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ log = "0.4.13"
assert_cmd = "2.0.4"
nix = "0.23.1"
tempfile = "3.2.0"
hyper = { version = "0.14.17", default-features = false, features = ["http1", "tcp"] }
hyper = { version = "0.14.18", default-features = false, features = ["http1", "tcp"] }
tokio = "1.17.0"
polkadot-test-service = { path = "../test/service", features=["runtime-metrics"]}
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }
Expand Down
6 changes: 3 additions & 3 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,11 @@ parameter_types! {
// 1 hour session, 15 minutes unsigned phase, 8 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 8;

/// We take the top 22_500 nominators as electing voters..
pub const MaxElectingVoters: u32 = 22_500;
/// We take the top 12500 nominators as electing voters..
pub const MaxElectingVoters: u32 = 12_500;
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
pub const MaxElectableTargets: u16 = u16::MAX;

}

frame_election_provider_support::generate_solution_type!(
Expand All @@ -420,6 +419,7 @@ frame_election_provider_support::generate_solution_type!(
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
MaxVoters = MaxElectingVoters,
>(24)
);

Expand Down
3 changes: 2 additions & 1 deletion runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ parameter_types! {
// 4 hour session, 1 hour unsigned phase, 32 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 32;

/// We take the top 22_500 nominators as electing voters..
/// We take the top 22500 nominators as electing voters..
pub const MaxElectingVoters: u32 = 22_500;
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
Expand All @@ -462,6 +462,7 @@ frame_election_provider_support::generate_solution_type!(
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
MaxVoters = MaxElectingVoters,
>(16)
);

Expand Down
3 changes: 2 additions & 1 deletion runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ parameter_types! {
// 1 hour session, 15 minutes unsigned phase, 4 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4;

/// We take the top 22_500 nominators as electing voters..
/// We take the top 22500 nominators as electing voters..
pub const MaxElectingVoters: u32 = 22_500;
/// ... and all of the validators as electable targets. Whilst this is the case, we cannot and
/// shall not increase the size of the validator intentions.
Expand All @@ -364,6 +364,7 @@ frame_election_provider_support::generate_solution_type!(
VoterIndex = u32,
TargetIndex = u16,
Accuracy = sp_runtime::PerU16,
MaxVoters = MaxElectingVoters,
>(16)
);

Expand Down
3 changes: 1 addition & 2 deletions scripts/run_benches_for_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ cargo +nightly build --profile production --locked --features=runtime-benchmarks
--list |\
tail -n+2 |\
cut -d',' -f1 |\
uniq | \
grep -v frame_system > "${runtime}_pallets"
uniq > "${runtime}_pallets"

# For each pallet found in the previous command, run benches on each function
while read -r line; do
Expand Down

0 comments on commit bc93fa5

Please sign in to comment.