Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + var LastInvHash common.Uint256 + func WriteMessage(sink *comm.ZeroCopySink, msg Message) + type Addr struct + NodeAddrs []comm.PeerAddr + func (this *Addr) CmdType() string + func (this *Addr) Deserialization(source *common.ZeroCopySource) error + func (this Addr) Serialization(sink *common.ZeroCopySink) + type AddrReq struct + func (this *AddrReq) CmdType() string + func (this *AddrReq) Deserialization(source *common.ZeroCopySource) error + func (this AddrReq) Serialization(sink *common.ZeroCopySink) + type BlkHeader struct + BlkHdr []*ct.Header + func (this *BlkHeader) CmdType() string + func (this *BlkHeader) Deserialization(source *common.ZeroCopySource) error + func (this BlkHeader) Serialization(sink *common.ZeroCopySink) + type Block struct + Blk *types.Block + MerkleRoot common.Uint256 + func (this *Block) CmdType() string + func (this *Block) Deserialization(source *common.ZeroCopySource) error + func (this *Block) Serialization(sink *common.ZeroCopySink) + type BlocksReq struct + HashStart comm.Uint256 + HashStop comm.Uint256 + HeaderHashCount uint8 + func (this *BlocksReq) CmdType() string + func (this *BlocksReq) Deserialization(source *comm.ZeroCopySource) error + func (this *BlocksReq) Serialization(sink *comm.ZeroCopySink) + type Consensus struct + Cons ConsensusPayload + func (this *Consensus) CmdType() string + func (this *Consensus) Deserialization(source *comm.ZeroCopySource) error + func (this *Consensus) Serialization(sink *comm.ZeroCopySink) + type ConsensusPayload struct + BookkeeperIndex uint16 + Data []byte + Height uint32 + Owner keypair.PublicKey + PeerId uint64 + PrevHash common.Uint256 + Signature []byte + Timestamp uint32 + Version uint32 + func (this *ConsensusPayload) Deserialization(source *common.ZeroCopySource) error + func (this *ConsensusPayload) Deserialize(r io.Reader) error + func (this *ConsensusPayload) DeserializeUnsigned(r io.Reader) error + func (this *ConsensusPayload) GetMessage() []byte + func (this *ConsensusPayload) Hash() common.Uint256 + func (this *ConsensusPayload) InventoryType() common.InventoryType + func (this *ConsensusPayload) Serialization(sink *common.ZeroCopySink) + func (this *ConsensusPayload) Serialize(w io.Writer) error + func (this *ConsensusPayload) SerializeUnsigned(w io.Writer) error + func (this *ConsensusPayload) ToArray() []byte + func (this *ConsensusPayload) Type() common.InventoryType + func (this *ConsensusPayload) Verify() error + type DataReq struct + DataType common.InventoryType + Hash common.Uint256 + func (this *DataReq) CmdType() string + func (this *DataReq) Deserialization(source *common.ZeroCopySource) error + func (this DataReq) Serialization(sink *common.ZeroCopySink) + type Disconnected struct + func (this *Disconnected) Deserialization(source *comm.ZeroCopySource) error + func (this Disconnected) CmdType() string + func (this Disconnected) Serialization(sink *comm.ZeroCopySink) + type HeadersReq struct + HashEnd common.Uint256 + HashStart common.Uint256 + Len uint8 + func (this *HeadersReq) CmdType() string + func (this *HeadersReq) Deserialization(source *common.ZeroCopySource) error + func (this *HeadersReq) Serialization(sink *common.ZeroCopySink) + type Inv struct + P InvPayload + func (this *Inv) CmdType() string + func (this *Inv) Deserialization(source *common.ZeroCopySource) error + func (this Inv) Serialization(sink *common.ZeroCopySink) + type InvPayload struct + Blk []common.Uint256 + InvType common.InventoryType + type Message interface + CmdType func() string + Deserialization func(source *comm.ZeroCopySource) error + Serialization func(sink *comm.ZeroCopySink) + func MakeEmptyMessage(cmdType string) (Message, error) + func ReadMessage(reader io.Reader) (Message, uint32, error) + type MsgPayload struct + Addr string + Id uint64 + Payload Message + PayloadSize uint32 + type NotFound struct + Hash common.Uint256 + func (this *NotFound) Deserialization(source *common.ZeroCopySource) error + func (this NotFound) CmdType() string + func (this NotFound) Serialization(sink *common.ZeroCopySink) + type Ping struct + Height uint64 + func (this *Ping) CmdType() string + func (this *Ping) Deserialization(source *comm.ZeroCopySource) error + func (this Ping) Serialization(sink *comm.ZeroCopySink) + type Pong struct + Height uint64 + func (this *Pong) Deserialization(source *comm.ZeroCopySource) error + func (this Pong) CmdType() string + func (this Pong) Serialization(sink *comm.ZeroCopySink) + type RawBlockHeader struct + BlkHdr []*ct.RawHeader + func (this *RawBlockHeader) CmdType() string + func (this *RawBlockHeader) Deserialization(source *common.ZeroCopySource) error + func (this *RawBlockHeader) Serialization(sink *common.ZeroCopySink) + type Trn struct + Txn *types.Transaction + func (this *Trn) CmdType() string + func (this *Trn) Deserialization(source *comm.ZeroCopySource) error + func (this Trn) Serialization(sink *comm.ZeroCopySink) + type VerACK struct + func (this *VerACK) CmdType() string + func (this *VerACK) Deserialization(source *comm.ZeroCopySource) error + func (this *VerACK) Serialization(sink *comm.ZeroCopySink) + type Version struct + P VersionPayload + func (this *Version) CmdType() string + func (this *Version) Deserialization(source *comm.ZeroCopySource) error + func (this *Version) Serialization(sink *comm.ZeroCopySink) + type VersionPayload struct + Cap [32]byte + ConsPort uint16 + HttpInfoPort uint16 + IsConsensus bool + Nonce uint64 + Relay uint8 + Services uint64 + SoftVersion string + StartHeight uint64 + SyncPort uint16 + TimeStamp int64 + Version uint32