Documentation ¶
Index ¶
Constants ¶
View Source
const ProtocolID = "/fil/hello/1.0.0"
Variables ¶
View Source
var ErrBadGenesis = fmt.Errorf("bad genesis block")
Functions ¶
This section is empty.
Types ¶
type GreetingMessage ¶
type GreetingMessage struct { HeaviestTipSet []cid.Cid HeaviestTipSetHeight abi.ChainEpoch HeaviestTipSetWeight big.Int GenesisHash cid.Cid }
GreetingMessage is the data structure of a single message in the hello protocol.
func (*GreetingMessage) MarshalCBOR ¶
func (t *GreetingMessage) MarshalCBOR(w io.Writer) error
func (*GreetingMessage) UnmarshalCBOR ¶
func (t *GreetingMessage) UnmarshalCBOR(r io.Reader) (err error)
type LatencyMessage ¶
LatencyMessage is written in response to a hello message for measuring peer latency.
func (*LatencyMessage) MarshalCBOR ¶
func (t *LatencyMessage) MarshalCBOR(w io.Writer) error
func (*LatencyMessage) UnmarshalCBOR ¶
func (t *LatencyMessage) UnmarshalCBOR(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.