add quickStart option that avoids network metadata

This commit is contained in:
Jacek Sieka 2019-09-09 16:34:50 -04:00
parent c619b9557a
commit ab2cce3951
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
2 changed files with 45 additions and 40 deletions

View File

@ -164,6 +164,7 @@ proc init*(T: type BeaconNode, conf: BeaconNodeConf): Future[BeaconNode] {.async
stderr.write args, "\n"
quit 1
if not conf.quickStart:
case conf.network
of "mainnet":
fail "The Serenity mainnet hasn't been launched yet"

View File

@ -31,6 +31,10 @@ type
shortform: "n"
defaultValue: DEFAULT_NETWORK .}: string
quickStart* {.
desc: "Run in quickstart mode",
defaultValue: false.}: bool
dataDir* {.
desc: "The directory where nimbus will store all blockchain data."
shortform: "d"