mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 22:06:42 +00:00

* Make TransactionOutputEstimatedSerializedSize public * Update the mempool interface * Refactor the mempool to the new design * refactor txselection and blocktemplatebuilder to the new design * Update the mining manager * Update the MiningManager factory * mempool fix requested changed
15 lines
545 B
Go
15 lines
545 B
Go
package model
|
|
|
|
import (
|
|
consensusexternalapi "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// Mempool maintains a set of known transactions that
|
|
// are intended to be mined into new blocks
|
|
type Mempool interface {
|
|
HandleNewBlockTransactions(txs []*consensusexternalapi.DomainTransaction)
|
|
Transactions() []*consensusexternalapi.DomainTransaction
|
|
ValidateAndInsertTransaction(transaction *consensusexternalapi.DomainTransaction, allowOrphan bool) error
|
|
RemoveTransactions(txs []*consensusexternalapi.DomainTransaction)
|
|
}
|