package
0.0.0-20220328184738-3922e60573cf
Repository: https://github.com/gattaca-com/oracle-evm.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
BytesToRequest unmarshals the given requestBytes into Request object.
No description provided by the author
RequestToBytes marshals the given request object into bytes.
# Constants
TxMsgSoftCapSize is the ideal size of encoded transaction bytes we send in any [Txs] message.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
# 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.ShortID, 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.