Small bug fixes from initial sim tests (#993)

* Debug logging and fixes

* Minor fixes

* Remove debugging statements
This commit is contained in:
Age Manning
2020-04-09 14:28:37 +10:00
committed by GitHub
parent 1779aa6a8a
commit 19b8c5a9e0
7 changed files with 52 additions and 31 deletions

View File

@@ -107,9 +107,9 @@ impl<TSpec: EthSpec> Decoder for SSZInboundCodec<TSpec> {
_ => unreachable!("Cannot negotiate an unknown version"),
},
RPC_PING => match self.protocol.version.as_str() {
"1" => Ok(Some(RPCRequest::Status(StatusMessage::from_ssz_bytes(
&packet,
)?))),
"1" => Ok(Some(RPCRequest::Ping(Ping {
data: u64::from_ssz_bytes(&packet)?,
}))),
_ => unreachable!("Cannot negotiate an unknown version"),
},
RPC_META_DATA => match self.protocol.version.as_str() {