msgpack

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: LGPL-3.0 Imports: 5 Imported by: 16

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 added in v1.10.0

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