mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 19:51:47 +00:00
Correct cli rpc parameters
This commit is contained in:
@@ -97,6 +97,10 @@ impl ClientConfig {
|
||||
|
||||
/* RPC related arguments */
|
||||
|
||||
if args.is_present("rpc") {
|
||||
config.rpc_conf.enabled = true;
|
||||
}
|
||||
|
||||
if let Some(rpc_address) = args.value_of("rpc-address") {
|
||||
if let Ok(listen_address) = rpc_address.parse::<Ipv4Addr>() {
|
||||
config.rpc_conf.listen_address = listen_address;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
extern crate slog;
|
||||
|
||||
mod client_config;
|
||||
|
||||
pub mod client_types;
|
||||
pub mod error;
|
||||
pub mod notifier;
|
||||
@@ -61,7 +60,9 @@ impl<TClientType: ClientTypes> Client<TClientType> {
|
||||
)?;
|
||||
|
||||
// spawn the RPC server
|
||||
rpc::start_server(&config.rpc_conf, &log);
|
||||
if config.rpc_conf.enabled {
|
||||
rpc::start_server(&config.rpc_conf, &log);
|
||||
}
|
||||
|
||||
Ok(Client {
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user