Fix block generation by updating codec versions in wasm (#810)

* Fixes for staging testnet

* Fix codec versioning

* Comment unneeded trace

* Update lib.rs

* Update parity-codec

* Add script to update wasm deps and update them.

* Update hashes

* Add BBQ Birch testnet

* it's default-features, apparently.

* Use simpler version spec for parity codec

* Typo
This commit is contained in:
Gav Wood
2018-09-27 14:38:56 +01:00
committed by GitHub
parent 29c9719568
commit 851c7f42df
54 changed files with 915 additions and 760 deletions
+5 -5
View File
@@ -41,8 +41,8 @@ pub enum ChainSpec {
Development,
/// Whatever the current runtime is, with simple Alice/Bob auths.
LocalTestnet,
/// The PoC-1 & PoC-2 era testnet.
Testnet,
/// The BBQ Birch testnet.
BbqBirch,
/// Whatever the current runtime is with the "global testnet" defaults.
StagingTestnet,
}
@@ -51,7 +51,7 @@ pub enum ChainSpec {
impl ChainSpec {
pub(crate) fn load(self) -> Result<service::ChainSpec, String> {
Ok(match self {
ChainSpec::Testnet => service::chain_spec::testnet_config()?,
ChainSpec::BbqBirch => service::chain_spec::bbq_birch_config()?,
ChainSpec::Development => service::chain_spec::development_config(),
ChainSpec::LocalTestnet => service::chain_spec::local_testnet_config(),
ChainSpec::StagingTestnet => service::chain_spec::staging_testnet_config(),
@@ -62,7 +62,7 @@ impl ChainSpec {
match s {
"dev" => Some(ChainSpec::Development),
"local" => Some(ChainSpec::LocalTestnet),
"" | "test" => Some(ChainSpec::Testnet),
"" | "bbq-birch" => Some(ChainSpec::BbqBirch),
"staging" => Some(ChainSpec::StagingTestnet),
_ => None,
}
@@ -85,7 +85,7 @@ pub fn run<I, T, E>(args: I, exit: E, version: cli::VersionInfo) -> error::Resul
match cli::prepare_execution::<service::Factory, _, _, _, _>(args, exit, version, load_spec, "substrate-node")? {
cli::Action::ExecutedInternally => (),
cli::Action::RunService((config, exit)) => {
info!("Parity ·:· Substrate");
info!("Substrate Node");
info!(" version {}", config.full_version());
info!(" by Parity Technologies, 2017, 2018");
info!("Chain specification: {}", config.chain_spec.name());