Restore a change mysteriously lost during rebasing
This commit is contained in:
parent
88010a1cd1
commit
ed9cb274a2
|
@ -12,11 +12,16 @@ const
|
||||||
type
|
type
|
||||||
ValidatorKeyPath* = TypedInputFile[ValidatorPrivKey, Txt, "privkey"]
|
ValidatorKeyPath* = TypedInputFile[ValidatorPrivKey, Txt, "privkey"]
|
||||||
|
|
||||||
StartUpCommand* = enum
|
StartUpCmd* = enum
|
||||||
noCommand
|
noCommand
|
||||||
importValidator
|
importValidator
|
||||||
createTestnet
|
createTestnet
|
||||||
makeDeposits
|
makeDeposits
|
||||||
|
query
|
||||||
|
|
||||||
|
QueryCmd* = enum
|
||||||
|
nimQuery
|
||||||
|
get
|
||||||
|
|
||||||
Eth1Network* = enum
|
Eth1Network* = enum
|
||||||
custom
|
custom
|
||||||
|
@ -75,7 +80,7 @@ type
|
||||||
|
|
||||||
case cmd* {.
|
case cmd* {.
|
||||||
command
|
command
|
||||||
defaultValue: noCommand }: StartUpCommand
|
defaultValue: noCommand }: StartUpCmd
|
||||||
|
|
||||||
of noCommand:
|
of noCommand:
|
||||||
bootstrapNodes* {.
|
bootstrapNodes* {.
|
||||||
|
@ -210,6 +215,22 @@ type
|
||||||
defaultValue: ""
|
defaultValue: ""
|
||||||
longform: "deposit-private-key" }: string
|
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 =
|
proc defaultPort*(config: BeaconNodeConf): int =
|
||||||
9000
|
9000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue