Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + const ProtocolID + type HelloMessage struct + GenesisHash cid.Cid + HeaviestTipSet []cid.Cid + HeaviestTipSetHeight abi.ChainEpoch + HeaviestTipSetWeight big.Int + func (t *HelloMessage) MarshalCBOR(w io.Writer) error + func (t *HelloMessage) UnmarshalCBOR(r io.Reader) error + type LatencyMessage struct + TArrival int64 + TSent int64 + func (t *LatencyMessage) MarshalCBOR(w io.Writer) error + func (t *LatencyMessage) UnmarshalCBOR(r io.Reader) error + type NewStreamFunc func(context.Context, peer.ID, ...protocol.ID) (inet.Stream, error) + type Service struct + func NewHelloService(h host.Host, cs *store.ChainStore, syncer *chain.Syncer, ...) *Service + func (hs *Service) HandleStream(s inet.Stream) + func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error