Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTemplateBuilder ¶
type BlockTemplateBuilder interface {
GetBlockTemplate(coinbaseData *consensusexternalapi.DomainCoinbaseData) (*consensusexternalapi.DomainBlock, error)
}
BlockTemplateBuilder builds block templates for miners to consume
type Mempool ¶
type Mempool interface { HandleNewBlockTransactions(txs []*consensusexternalapi.DomainTransaction) ([]*consensusexternalapi.DomainTransaction, error) BlockCandidateTransactions() []*consensusexternalapi.DomainTransaction ValidateAndInsertTransaction(transaction *consensusexternalapi.DomainTransaction, allowOrphan bool) error RemoveTransactions(txs []*consensusexternalapi.DomainTransaction) error GetTransaction(transactionID *consensusexternalapi.DomainTransactionID) (*consensusexternalapi.DomainTransaction, bool) AllTransactions() []*consensusexternalapi.DomainTransaction TransactionCount() int }
Mempool maintains a set of known transactions that are intended to be mined into new blocks
Click to show internal directories.
Click to hide internal directories.