diff --git a/polkadot/runtime/src/lib.rs b/polkadot/runtime/src/lib.rs index 203ac58c6b..6239b10bef 100644 --- a/polkadot/runtime/src/lib.rs +++ b/polkadot/runtime/src/lib.rs @@ -128,6 +128,7 @@ impl HasPublicAux for Concrete { } impl system::Trait for Concrete { + type PublicAux = ::PublicAux; type Index = Index; type BlockNumber = BlockNumber; type Hash = Hash; @@ -140,7 +141,6 @@ impl system::Trait for Concrete { pub type System = system::Module; impl consensus::Trait for Concrete { - type PublicAux = ::PublicAux; type SessionKey = SessionKey; } /// Consensus module for this concrete runtime. diff --git a/polkadot/runtime/src/parachains.rs b/polkadot/runtime/src/parachains.rs index efd7a97285..19c9613835 100644 --- a/polkadot/runtime/src/parachains.rs +++ b/polkadot/runtime/src/parachains.rs @@ -258,10 +258,10 @@ mod tests { type PublicAux = u64; } impl consensus::Trait for Test { - type PublicAux = ::PublicAux; type SessionKey = u64; } impl system::Trait for Test { + type PublicAux = ::PublicAux; type Index = u64; type BlockNumber = u64; type Hash = H256; diff --git a/polkadot/service/src/chain_spec.rs b/polkadot/service/src/chain_spec.rs index dcf487de0b..85ecbe5196 100644 --- a/polkadot/service/src/chain_spec.rs +++ b/polkadot/service/src/chain_spec.rs @@ -63,7 +63,7 @@ fn staging_testnet_config_genesis() -> GenesisConfig { balances: endowed_accounts.iter().map(|&k|(k, 1u128 << 60)).collect(), validator_count: 12, sessions_per_era: 12, // 1 hour per era - bonding_duration: 24, // 1 day per bond. + bonding_duration: 24 * 60 * 12, // 1 day per bond. }), democracy: Some(DemocracyConfig { launch_period: 12 * 60 * 24, // 1 day per public referendum @@ -136,7 +136,7 @@ fn testnet_genesis(initial_authorities: Vec) -> GenesisConfig { balances: endowed_accounts.iter().map(|&k|(k, (1u128 << 60))).collect(), validator_count: 2, sessions_per_era: 5, - bonding_duration: 2, + bonding_duration: 2 * 60 * 12, early_era_slash: 0, session_reward: 0, }),