WIP: Made block publishing validator function, which sends to a network channel. Untested.

This commit is contained in:
Luke Anderson
2019-09-10 10:54:37 +10:00
parent 0136eb33b0
commit ca9094e79a
4 changed files with 68 additions and 25 deletions

View File

@@ -18,8 +18,9 @@ use client_network::NetworkMessage;
use client_network::Service as NetworkService;
use eth2_config::Eth2Config;
use hyper::rt::Future;
use hyper::service::service_fn_ok;
use hyper::{Body, Method, Response, Server, StatusCode};
use hyper::service::Service;
use hyper::{Body, Method, Request, Response, Server, StatusCode};
use parking_lot::RwLock;
use response_builder::ResponseBuilder;
use slog::{info, o, warn};
use std::ops::Deref;