Allow starting testnet from JSON state

This commit is contained in:
Paul Hauner
2019-09-02 15:58:53 +10:00
parent ba22d28026
commit 70f4052b2e
6 changed files with 25 additions and 2 deletions

View File

@@ -56,6 +56,8 @@ pub enum BeaconChainStartMethod {
Yaml { file: PathBuf },
/// Create a new beacon chain by loading a SSZ-encoded genesis state from a file.
Ssz { file: PathBuf },
/// Create a new beacon chain by loading a JSON-encoded genesis state from a file.
Json { file: PathBuf },
/// Create a new beacon chain by using a HTTP server (running our REST-API) to load genesis and
/// finalized states and blocks.
HttpBootstrap { server: String, port: Option<u16> },