Add standard RPC service

This commit is contained in:
Age Manning
2019-03-19 23:47:58 +11:00
parent 4b57d32b60
commit d2f12b7c18
4 changed files with 14 additions and 9 deletions

View File

@@ -6,11 +6,9 @@ pub mod client_types;
pub mod error;
pub mod notifier;
use beacon_chain::BeaconChain;
pub use client_config::ClientConfig;
pub use client_types::ClientTypes;
//use beacon_chain::BeaconChain;
use beacon_chain::BeaconChain;
use exit_future::Signal;
use network::Service as NetworkService;
use slog::o;
@@ -62,6 +60,9 @@ impl<TClientType: ClientTypes> Client<TClientType> {
network_logger,
)?;
// spawn the RPC server
rpc::start_server(&config.rpc_conf, &log);
Ok(Client {
config,
beacon_chain,