package
1.1.1
Repository: https://github.com/bytom/blockchain.git
Documentation: pkg.go.dev

# Functions

DecodeMessage decode msg.
NewBlockMessage construct bock response msg.
NewBlocksMessage create a new BlocksMessage.
NewGetBlocksMessage create a new GetBlocksMessage.
NewGetHeadersMessage return a new GetHeadersMessage.
NewHeadersMessage create a new HeadersMessage.
NewMerkleBlockMessage construct merkle block message.
NewMinedBlockMessage construct new mined block msg.
NewProtocolReactor returns the reactor of whole blockchain.
NewStatusResponseMessage construct get status response msg.
CreateSyncManager create sync manager and set switch.
NewTransactionMessage construct notify new tx msg.

# Constants

protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.
protocol msg byte.

# Variables

No description provided by the author

# Structs

BlockMessage response get block msg.
BlocksMessage is one of the bytom msg type.
FilterAddMessage tells the receiving peer to add address to the filter.
FilterClearMessage tells the receiving peer to remove a previously-set filter.
FilterLoadMessage tells the receiving peer to filter the transactions according to address.
GetBlockMessage request blocks from remote peers by height/hash.
GetBlocksMessage is one of the bytom msg type.
GetHeadersMessage is one of the bytom msg type.
GetMerkleBlockMessage request merkle blocks from remote peers by height/hash.
HeadersMessage is one of the bytom msg type.
MerkleBlockMessage return the merkle block to client.
MineBlockMessage new mined block msg.
PeerInfo indicate peer status snap.
ProtocolReactor handles new coming protocol message.
StatusRequestMessage status request msg.
StatusResponseMessage get status response msg.
SyncManager Sync Manager is responsible for the business layer information synchronization.
TransactionMessage notify new tx msg.

# Interfaces

BasePeer is the interface for connection level peer.
BasePeerSet is the intergace for connection level peer manager.
BlockchainMessage is a generic message for this reactor.
Chain is the interface for Bytom core.
No description provided by the author