Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions client/chain-spec/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ impl<G: RuntimeGenesis, E> BuildStorage for ChainSpec<G, E> {
})
.collect(),
}),
// The `TrieRootHash` variant exists as a way to keep note that other clients support
// it, but Substrate itself isn't capable of loading chain specs with just a hash.
Genesis::TrieRootHash(_) => Err("Genesis storage in hash format not supported".into())
}
}

Expand All @@ -144,6 +147,8 @@ pub struct RawGenesis {
enum Genesis<G> {
Runtime(G),
Raw(RawGenesis),
/// State trie root of the genesis storage.
TrieRootHash(StorageData),
}

/// A configuration of a client. Does not include runtime storage initialization.
Expand Down