package
0.0.0-20210301081109-a173fca9e8fd
Repository: https://github.com/drep-project/drep-chain.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
BytesToBloom converts a byte slice to a bloom filter.
No description provided by the author
No description provided by the author
No description provided by the author
initBlockNode initializes a block node from the given header and parent node, calculating the height and workSum from the respective fields on the parent.
No description provided by the author
Set an alias to the address srcAddr.
newBestState returns a new best stats instance for the given parameters.
NewBlockNode returns a new block node for the given block header and parent node, calculating the height and workSum from the respective fields on the parent.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewReceipt creates a barebone transaction receipt, copying the init fields.
No description provided by the author
No description provided by the author
# Constants
BloomBitLength represents the number of bits used in a header log bloom.
BloomByteLength represents the number of bytes used in a header log bloom.
No description provided by the author
Apply to be a candidate block node.
Revocation of pledge currency.
Apply to be a candidate block node.
No description provided by the author
每个消息最大大小20MB.
新块通知.
同步块请求.
同步块回复.
请求区块头.
请求区块头回复.
Peer状态回复/或者状态通知.
peer状态请求.
广播交易.
ReceiptStatusFailed is the status code of a transaction if execution failed.
ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
No description provided by the author
Give the address a nickname.
statusDataStored indicates that the block's payload is stored on disk.
statusInvalidAncestor indicates that one of the block's ancestors has has failed validation, thus the block is also invalid.
statusNone indicates that the block has no validation state flags set.
statusValid indicates that the block has been fully validated.
statusValidateFailed indicates that the block has failed validation.
No description provided by the author
Pledge to someone else.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
本模块定义的消息个数.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Candidate node data section information.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A creadit value of some height.
No description provided by the author
No description provided by the author
NewMinedBlockEvent is posted when a block has been imported.
NewTxsEvent is posted when a batch of transactions enter the transaction pool.
No description provided by the author
orphanBlock represents a block that we don't yet have the parent for.
Business layer peerknown BLK height:.
No description provided by the author
No description provided by the author
PendingLogsEvent is posted pre mining and notifies of pending logs.
No description provided by the author
No description provided by the author
Receipt represents the results of a transaction.
No description provided by the author
RemovedLogsEvent is posted when a reorg happens.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
blockStatus is a bit field representing the validation state of the block.
Bloom represents a 2048 bit bloom filter.
No description provided by the author
No description provided by the author
Receipts is a wrapper around a Receipt array to implement DerivableList.
No description provided by the author
No description provided by the author