Restore a change mysteriously lost during rebasing

This commit is contained in:
Zahary Karadjov 2019-11-01 11:53:06 +02:00 committed by zah
parent 88010a1cd1
commit ed9cb274a2
1 changed files with 23 additions and 2 deletions

View File

@ -12,11 +12,16 @@ const
type
ValidatorKeyPath* = TypedInputFile[ValidatorPrivKey, Txt, "privkey"]
StartUpCommand* = enum
StartUpCmd* = enum
noCommand
importValidator
createTestnet
makeDeposits
query
QueryCmd* = enum
nimQuery
get
Eth1Network* = enum
custom
@ -75,7 +80,7 @@ type
case cmd* {.
command
defaultValue: noCommand }: StartUpCommand
defaultValue: noCommand }: StartUpCmd
of noCommand:
bootstrapNodes* {.
@ -210,6 +215,22 @@ type
defaultValue: ""
longform: "deposit-private-key" }: string
of query:
case queryCmd* {.
command
defaultValue: nimQuery
desc: "Query the beacon node database and print the result" }: QueryCmd
of nimQuery:
nimQueryExpression* {.
argument
desc: "Nim expression to evaluate (using limited syntax)" }: string
of get:
getQueryPath* {.
argument
desc: "REST API path to evaluate" }: string
proc defaultPort*(config: BeaconNodeConf): int =
9000