Merge latest master

This commit is contained in:
Age Manning
2019-07-16 23:26:31 +10:00
74 changed files with 4211 additions and 786 deletions

View File

@@ -25,6 +25,8 @@ const PROTOCOL_PREFIX: &str = "/eth/serenity/rpc/";
const REQUEST_TIMEOUT: u64 = 3;
/// Implementation of the `ConnectionUpgrade` for the RPC protocol.
const MAX_READ_SIZE: usize = 4_194_304; // 4M
#[derive(Debug, Clone)]
pub struct RPCProtocol;

View File

@@ -109,8 +109,6 @@ impl Stream for Service {
fn poll(&mut self) -> Poll<Option<Self::Item>, Self::Error> {
loop {
// TODO: Currently only gossipsub events passed here.
// Build a type for more generic events
match self.swarm.poll() {
//Behaviour events
Ok(Async::Ready(Some(event))) => match event {