From a14426349a0e417968e6b4ed421b0eb25c6344e5 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Thu, 21 Mar 2019 10:53:29 +1100 Subject: [PATCH] Implement Goodbye RPC call --- beacon_node/eth2-libp2p/src/rpc/protocol.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon_node/eth2-libp2p/src/rpc/protocol.rs b/beacon_node/eth2-libp2p/src/rpc/protocol.rs index 7ec2abc592..ab24a32c37 100644 --- a/beacon_node/eth2-libp2p/src/rpc/protocol.rs +++ b/beacon_node/eth2-libp2p/src/rpc/protocol.rs @@ -81,6 +81,10 @@ fn decode(packet: Vec) -> Result { let (hello_body, _index) = HelloMessage::ssz_decode(&packet, index)?; RPCRequest::Hello(hello_body) } + RPCMethod::Goodbye => { + let (goodbye_code, _index) = u64::ssz_decode(&packet, index)?; + RPCRequest::Goodbye(goodbye_code) + } RPCMethod::Unknown | _ => return Err(DecodeError::UnknownRPCMethod), };