Skip to content

Commit

Permalink
Regenesis (paritytech#574)
Browse files Browse the repository at this point in the history
* Place the deprecated modules

* Use regenesis_params

* Imple regenesis builder

* Try loading the regenesis data

* Commit regenesis data

* Fix format

* Use 3696796

* Delete unused file

* Remove deprecated_builder

* Nits
  • Loading branch information
liuchengxu authored Aug 11, 2021
1 parent 7da76ac commit 542cb6e
Show file tree
Hide file tree
Showing 10 changed files with 134,661 additions and 252 deletions.
2 changes: 0 additions & 2 deletions cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,6 @@ fn build_genesis(
}),
xpallet_genesis_builder: Some(dev::XGenesisBuilderConfig {
params: crate::genesis::genesis_builder_params(),
initial_authorities_endowed,
root_endowed: 0,
}),
}
}
2 changes: 1 addition & 1 deletion cli/src/genesis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use xp_genesis_builder::AllParams;
use chainx_primitives::{AccountId, Balance};

pub fn genesis_builder_params() -> AllParams<AccountId, Balance, Balance, Balance> {
serde_json::from_str(include_str!("../res/genesis_builder_params.json"))
serde_json::from_str(include_str!("../res/3696796_regenesis_params.json"))
.map_err(|e| log::error!("{:?}", e))
.expect("JSON was not well-formatted")
}
Loading

0 comments on commit 542cb6e

Please sign in to comment.