Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTemplateBuilder ¶
type BlockTemplateBuilder interface { BuildBlock(tempblock *external.TempBlock) (block *external.TempBlock, err error) BuildBlockTemplate(CoinbaseData *external.DomainCoinbaseData) (*external.DomainBlockTemplate, error) ModifyBlockTemplate(newCoinbaseData *external.DomainCoinbaseData) (*external.DomainBlockTemplate, error) }
BlockTemplateBuilder builds block templates for miners to consume
type Mempool ¶
type Mempool interface { HandleNewBlockTransactions(txs []*external.DomainTransaction) ([]*external.DomainTransaction, error) BlockCandidateTransactions() []*external.DomainTransaction ValidateAndInsertTransaction(transaction *external.DomainTransaction, isHighPriority bool, allowOrphan bool) ( acceptedTransactions []*external.DomainTransaction, err error) RemoveTransactions(txs []*external.DomainTransaction, removeRedeemers bool) error GetTransaction( transactionID *external.DomainTransactionID, includeTransactionPool bool, includeOrphanPool bool, ) ( transactionPoolTransaction *external.DomainTransaction, isOrphan bool, found bool) GetTransactionsByAddresses( includeTransactionPool bool, includeOrphanPool bool) ( sendingInTransactionPool map[string]*external.DomainTransaction, receivingInTransactionPool map[string]*external.DomainTransaction, sendingInOrphanPool map[string]*external.DomainTransaction, receivingInOrphanPool map[string]*external.DomainTransaction, err error) AllTransactions( includeTransactionPool bool, includeOrphanPool bool, ) ( transactionPoolTransactions []*external.DomainTransaction, orphanPoolTransactions []*external.DomainTransaction) TransactionCount( includeTransactionPool bool, includeOrphanPool bool) int }
Click to show internal directories.
Click to hide internal directories.