Versions in this module Expand all Collapse all v1 v1.2.0 Jul 8, 2022 Changes in this version + const Diff1 + const DiffCapMsg + const DiffLayerMsg + const FullDiffLayerMsg + const GetDiffLayerMsg + const ProtocolName + var ProtocolVersions = []uint + func Handle(backend Backend, peer *Peer) error + func MakeProtocols(backend Backend, dnsdisc enode.Iterator) []p2p.Protocol + type Backend interface + Chain func() *core.BlockChain + Handle func(peer *Peer, packet Packet) error + PeerInfo func(id enode.ID) interface{} + RunPeer func(peer *Peer, handler Handler) error + type DiffCapPacket struct + DiffSync bool + Extra rlp.RawValue + func (*DiffCapPacket) Kind() byte + func (*DiffCapPacket) Name() string + type DiffLayersPacket []rlp.RawValue + func (*DiffLayersPacket) Kind() byte + func (*DiffLayersPacket) Name() string + func (p *DiffLayersPacket) Unpack() ([]*types.DiffLayer, error) + type FullDiffLayersPacket struct + RequestId uint64 + func (*FullDiffLayersPacket) Kind() byte + func (*FullDiffLayersPacket) Name() string + type GetDiffLayersPacket struct + BlockHashes []common.Hash + RequestId uint64 + func (*GetDiffLayersPacket) Kind() byte + func (*GetDiffLayersPacket) Name() string + type Handler func(peer *Peer) error + type NodeInfo struct + type Packet interface + Kind func() byte + Name func() string + type Peer struct + func NewPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter) *Peer + func (p *Peer) AsyncSendDiffLayer(diffLayers []rlp.RawValue) + func (p *Peer) Close() + func (p *Peer) DiffSync() bool + func (p *Peer) Handshake(diffSync bool) error + func (p *Peer) ID() string + func (p *Peer) Log() log.Logger + func (p *Peer) RequestDiffLayers(hashes []common.Hash) error + func (p *Peer) SendDiffLayers(diffs []rlp.RawValue) error + func (p *Peer) Version() uint + type Tracker struct + func NewTracker(timeout time.Duration) *Tracker + func (t *Tracker) Fulfil(peer string, version uint, code uint64, id uint64) bool + func (t *Tracker) Track(peer string, version uint, reqCode uint64, resCode uint64, id uint64)