diff --git a/polkadot/runtime/src/parachains.rs b/polkadot/runtime/src/parachains.rs index 11072ee997197a5e27c2eae3c9725ad1c52545de..232e2d949d4ad12e74986a5e28eb27150d8d87e9 100644 --- a/polkadot/runtime/src/parachains.rs +++ b/polkadot/runtime/src/parachains.rs @@ -200,7 +200,7 @@ impl<T: Trait> Module<T> { pub fn calculate_duty_roster() -> DutyRoster { let parachains = Self::active_parachains(); let parachain_count = parachains.len(); - let validator_count = <session::Module<T>>::validator_count() as usize; + let validator_count = <consensus::Module<T>>::authorities().len(); let validators_per_parachain = if parachain_count != 0 { (validator_count - 1) / parachain_count } else { 0 }; let mut roles_val = (0..validator_count).map(|i| match i { diff --git a/polkadot/runtime/wasm/Cargo.lock b/polkadot/runtime/wasm/Cargo.lock index e5d1e9dfb75d2209ce3734684cb14bf1fece5aa9..36dd0531186c2e77c1e4910f982b173c6508f122 100644 --- a/polkadot/runtime/wasm/Cargo.lock +++ b/polkadot/runtime/wasm/Cargo.lock @@ -982,7 +982,7 @@ dependencies = [ "serde_derive 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)", "sr-io 0.1.0 (git+https://github.com/paritytech/substrate)", "sr-primitives 0.1.0 (git+https://github.com/paritytech/substrate)", - "sr-std 0.1.0 (git+https://github.com/paritytech/substrate?rev=45824913c980bb1ba3963f9bba67775a507d8624)", + "sr-std 0.1.0 (git+https://github.com/paritytech/substrate)", "sr-version 0.1.0 (git+https://github.com/paritytech/substrate)", "srml-aura 0.1.0 (git+https://github.com/paritytech/substrate)", "srml-balances 0.1.0 (git+https://github.com/paritytech/substrate)", @@ -1495,14 +1495,6 @@ dependencies = [ "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "sr-std" -version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?rev=45824913c980bb1ba3963f9bba67775a507d8624#45824913c980bb1ba3963f9bba67775a507d8624" -dependencies = [ - "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "sr-version" version = "0.1.0" @@ -2692,7 +2684,6 @@ dependencies = [ "checksum sr-io 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" "checksum sr-primitives 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" "checksum sr-std 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" -"checksum sr-std 0.1.0 (git+https://github.com/paritytech/substrate?rev=45824913c980bb1ba3963f9bba67775a507d8624)" = "<none>" "checksum sr-version 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" "checksum srml-aura 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" "checksum srml-balances 0.1.0 (git+https://github.com/paritytech/substrate)" = "<none>" diff --git a/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm b/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm index f0a57cf637c131c5e5c42410ff2fdda68f838a7e..363dff3f3948d408c6361922825041c2f5c63aae 100644 Binary files a/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm and b/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.compact.wasm differ diff --git a/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm b/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm index f5baa6953f38350eaf5a3d6d0dc0f65f3ec2ddbd..c27df213d4fb3ede64164a9df3bb7a6b20b34924 100755 Binary files a/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm and b/polkadot/runtime/wasm/target/wasm32-unknown-unknown/release/polkadot_runtime.wasm differ