Updated validator client to do better logging, including of JSON serialised signatures and such, for debugging purposes.

This commit is contained in:
Luke Anderson
2019-09-10 10:55:46 +10:00
parent ca9094e79a
commit 476cbae577
4 changed files with 32 additions and 12 deletions

View File

@@ -54,7 +54,6 @@ fn main() {
)
.arg(
Arg::with_name("spec")
.short("s")
.long("spec")
.value_name("TITLE")
.help("Specifies the default eth2 spec type.")
@@ -132,6 +131,15 @@ fn main() {
.help("The number of validators."))
)
)
.subcommand(SubCommand::with_name("sign_block")
.about("Connects to the beacon server, requests a new block (after providing reveal),\
and prints the signed block to standard out")
.arg(Arg::with_name("validator")
.value_name("VALIDATOR")
.required(true)
.help("The pubkey of the validator that should sign the block.")
)
)
.get_matches();
let drain = match matches.value_of("debug-level") {