From 9db36f15bf4dee0d92478a043f4ec4061def24a1 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Wed, 20 Mar 2019 10:47:05 +1100 Subject: [PATCH] Tidy RPC Methods --- beacon_node/libp2p/src/rpc/methods.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/beacon_node/libp2p/src/rpc/methods.rs b/beacon_node/libp2p/src/rpc/methods.rs index 45e9f35abd..3014afd0ff 100644 --- a/beacon_node/libp2p/src/rpc/methods.rs +++ b/beacon_node/libp2p/src/rpc/methods.rs @@ -3,13 +3,21 @@ use ssz_derive::{Decode, Encode}; use types::{BeaconBlockBody, BeaconBlockHeader, Epoch, Hash256, Slot}; #[derive(Debug)] +/// Available Serenity Libp2p RPC methods pub enum RPCMethod { + /// Initialise handshake between connecting peers. Hello, + /// Terminate a connection providing a reason. Goodbye, + /// Requests a number of beacon block roots. BeaconBlockRoots, + /// Requests a number of beacon block headers. BeaconBlockHeaders, + /// Requests a number of beacon block bodies. BeaconBlockBodies, + /// Requests values for a merkle proof for the current blocks state root. BeaconChainState, // Note: experimental, not complete. + /// Unknown method received. Unknown, }