mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-13 06:07:06 +00:00
chain-spec: Make chain spec writing deterministic (#10550)
* chain-spec: Make chain spec writing deterministic This switches the chain spec to use `BTreeMap` internally instead of `HashMap`. This ensures that reading and writing the same chain spec always results in the same file. * fmt
This commit is contained in:
1 parent
9c4d61df90
commit
ea30c739ea
2 files changed
+56
-9
No files matched your search
@@ -186,7 +186,7 @@ pub trait ChainSpec: BuildStorage + Send + Sync {
|
||||
/// This will be used as storage at genesis.
|
||||
fn set_storage(&mut self, storage: Storage);
|
||||
/// Returns code substitutes that should be used for the on chain wasm.
|
||||
fn code_substitutes(&self) -> std::collections::HashMap<String, Vec<u8>>;
|
||||
fn code_substitutes(&self) -> std::collections::BTreeMap<String, Vec<u8>>;
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for dyn ChainSpec {
|
||||
|
||||
Reference in new issue
Block a user