Add much more progress to new CLI setup

This commit is contained in:
Paul Hauner
2019-08-25 12:14:04 +10:00
parent 7fd7aa2cdb
commit 140c677a38
5 changed files with 214 additions and 81 deletions

View File

@@ -37,7 +37,9 @@ pub struct Config {
pub enum BeaconChainStartMethod {
/// Resume from an existing BeaconChain, loaded from the existing local database.
Resume,
/// Create a new beacon chain with `validator_count` validators, all with well-known secret keys.
/// Resume from an existing BeaconChain, loaded from the existing local database.
Mainnet,
/// Create a new beacon chain that can connect to mainnet.
///
/// Set the genesis time to be the start of the previous 30-minute window.
RecentGenesis { validator_count: usize },
@@ -51,10 +53,7 @@ pub enum BeaconChainStartMethod {
Yaml { 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<String>,
},
HttpBootstrap { server: String, port: Option<u16> },
}
impl Default for BeaconChainStartMethod {