msgpack

package
v2.0.1-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddrReq

func NewAddrReq() mt.Message

Peer address request package

func NewAddrs

func NewAddrs(nodeAddrs []msgCommon.PeerAddr) mt.Message

Peer address package

func NewBlkDataReq

func NewBlkDataReq(hash common.Uint256) mt.Message

block request package

func NewBlock

func NewBlock(bk *ct.Block, merkleRoot common.Uint256) mt.Message

/block package

func NewConsensus

func NewConsensus(cp *mt.ConsensusPayload) mt.Message

//Consensus info package

func NewConsensusDataReq

func NewConsensusDataReq(hash common.Uint256) mt.Message

consensus request package

func NewHeaders

func NewHeaders(headers []*ct.RawHeader) mt.Message

blk hdr package

func NewHeadersReq

func NewHeadersReq(curHdrHash common.Uint256) mt.Message

blk hdr req package

func NewInv

func NewInv(invPayload *mt.InvPayload) mt.Message

Inv request package

func NewInvPayload

func NewInvPayload(invType common.InventoryType, msg []common.Uint256) *mt.InvPayload

InvPayload

func NewNotFound

func NewNotFound(hash common.Uint256) mt.Message

NotFound package

func NewPingMsg

func NewPingMsg(height uint64) *mt.Ping

ping msg package

func NewPongMsg

func NewPongMsg(height uint64) *mt.Pong

pong msg package

func NewTxn

func NewTxn(txn *ct.Transaction) mt.Message

Transaction package

func NewTxnDataReq

func NewTxnDataReq(hash common.Uint256) mt.Message

transaction request package

func NewVerAck

func NewVerAck() mt.Message

version ack package

func NewVersion

func NewVersion(n p2pnet.P2P, height uint32) mt.Message

Version package

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL