mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 13:54:44 +00:00
Implements Signer generic for validator client and epoch duties
This commit is contained in:
@@ -11,6 +11,7 @@ use clap::{App, Arg};
|
||||
use protos::services_grpc::ValidatorServiceClient;
|
||||
use service::Service as ValidatorService;
|
||||
use slog::{error, info, o, Drain};
|
||||
use types::Keypair;
|
||||
|
||||
fn main() {
|
||||
// Logging
|
||||
@@ -54,8 +55,8 @@ fn main() {
|
||||
.expect("Unable to build a configuration for the validator client.");
|
||||
|
||||
// start the validator service.
|
||||
// this specifies the GRPC type to use as the duty manager beacon node.
|
||||
match ValidatorService::<ValidatorServiceClient>::start(config, log.clone()) {
|
||||
// this specifies the GRPC and signer type to use as the duty manager beacon node.
|
||||
match ValidatorService::<ValidatorServiceClient, Keypair>::start(config, log.clone()) {
|
||||
Ok(_) => info!(log, "Validator client shutdown successfully."),
|
||||
Err(e) => error!(log, "Validator exited due to: {}", e.to_string()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user