# Functions
No description provided by the author
BytesToRequest unmarshals the given requestBytes into Request object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequestToBytes marshals the given request object into bytes.
# Constants
EthMsgSoftCapSize is the ideal size of encoded transaction bytes we send in any [EthTxsGossip] or [AtomicTxGossip] message.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
BlockRequest is a request to retrieve Parents number of blocks starting from Hash from newest-oldest manner.
BlockResponse is a response to a BlockRequest Blocks is slice of RLP encoded blocks starting with the block requested in BlockRequest.Hash.
BlockSignatureRequest is used to request a warp message's signature.
CodeRequest is a request to retrieve a contract code with specified Hash.
CodeResponse is a response to a CodeRequest crypto.Keccak256Hash of each element in Data is expected to equal the corresponding element in CodeRequest.Hashes handler: handlers.CodeRequestHandler.
No description provided by the author
LeafsRequest is a request to receive trie leaves at specified Root within Start and End byte range Limit outlines maximum number of leaves to returns starting at Start.
LeafsResponse is a response to a LeafsRequest Keys must be within LeafsRequest.Start and LeafsRequest.End and sorted in lexicographical order.
MessageSignatureRequest is used to request a warp message's signature.
No description provided by the author
No description provided by the author
SignatureResponse is the response to a BlockSignatureRequest or MessageSignatureRequest.
SyncSummary provides the information necessary to sync a node starting at the given block.
# Interfaces
GossipHandler handles incoming gossip messages.
No description provided by the author
Request represents a Network request type.
RequestHandler interface handles incoming requests from peers Must have methods in format of handleType(context.Context, ids.NodeID, uint32, request Type) error so that the Request object of relevant Type can invoke its respective handle method on this struct.
ResponseHandler handles response for a sent request Only one of OnResponse or OnFailure is called for a given requestID, not both.