Documentation ¶
Overview ¶
Package engine implements blockchain engine using other packages. It is responsible for handling network, consensus, transaction pool management and block generation.
Index ¶
Constants ¶
View Source
const ( RPCEventChainNewBlock = "chain_newBlock" RPCEventChainDeleteBlock = "chain_deleteBlock" RPCEventChainForked = "chain_forked" RPCEventChainValidatorsChanged = "chain_validatorsChanged" RPCEventNetworkNewBlock = "network_newBlock" RPCEventNetworkNewTransaction = "network_newTransaction" RPCEventTxpoolNewTransaction = "txpool_newTransaction" )
View Source
const (
// NetworkVersion specifies the network protocol.
NetworkVersion = "1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBlockHeader ¶
type EventBlockHeader struct {
BlockHeader *blockchain.BlockHeader `json:"blockHeader"`
}
type EventTransaction ¶
type EventTransaction struct {
Transaction *blockchain.Transaction `json:"transaction"`
}
type EventTransactionIDs ¶
Click to show internal directories.
Click to hide internal directories.