Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
NewMiningManager(consensus externalapi.Consensus, blockMaxMass uint64, acceptNonStd bool) MiningManager
}
Factory instantiates new mining managers
type MiningManager ¶
type MiningManager interface { GetBlockTemplate(coinbaseData *consensusexternalapi.DomainCoinbaseData) (*consensusexternalapi.DomainBlock, error) GetTransaction(transactionID *consensusexternalapi.DomainTransactionID) (*consensusexternalapi.DomainTransaction, bool) AllTransactions() []*consensusexternalapi.DomainTransaction HandleNewBlockTransactions(txs []*consensusexternalapi.DomainTransaction) ([]*consensusexternalapi.DomainTransaction, error) ValidateAndInsertTransaction(transaction *consensusexternalapi.DomainTransaction, allowOrphan bool) error }
MiningManager creates block templates for mining as well as maintaining known transactions that have no yet been added to any block
Directories ¶
Path | Synopsis |
---|---|
Package mempool provides a policy-enforced pool of unmined kaspa transactions.
|
Package mempool provides a policy-enforced pool of unmined kaspa transactions. |
Click to show internal directories.
Click to hide internal directories.