Commit a6d718a7 authored by Gav Wood's avatar Gav Wood Committed by GitHub
Browse files

Introduce and enforce block time (#232)

* Recompile runtime.

* Introduce and enforce block time
parent 2a011940
......@@ -221,6 +221,7 @@ mod tests {
democracy: Some(Default::default()),
parachains: Some(Default::default()),
staking: Some(Default::default()),
timestamp: Some(Default::default()),
};
::client::new_in_mem(LocalDispatch::new(), genesis_config.build_storage()).unwrap()
......
......@@ -136,6 +136,7 @@ impl PresetConfig {
voting_period: 7 * 120 * 24, // 7 day voting period for council members.
}),
parachains: Some(Default::default()),
timestamp: Some(Default::default()),
});
let boot_nodes = vec![
"enode://a93a29fa68d965452bf0ff8c1910f5992fe2273a72a1ee8d3a3482f68512a61974211ba32bb33f051ceb1530b8ba3527fc36224ba6b9910329025e6d9153cf50@104.211.54.233:30333".into(),
......@@ -200,6 +201,7 @@ impl PresetConfig {
voting_period: 20,
}),
parachains: Some(Default::default()),
timestamp: Some(Default::default()),
});
let boot_nodes = Vec::new();
PresetConfig { genesis_config, boot_nodes }
......
......@@ -213,6 +213,7 @@ impl_outer_config! {
StakingConfig => staking,
DemocracyConfig => democracy,
CouncilConfig => council,
TimestampConfig => timestamp,
ParachainsConfig => parachains,
}
}
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment