msgpack

package
v0.0.0-...-ef73a9a Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: LGPL-3.0 Imports: 5 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, ccMsg *ct.CrossChainMsg, 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 NewFindNodeReq

func NewFindNodeReq(id msgCommon.PeerId) mt.Message

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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