mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 08:28:50 +00:00
26 lines
769 B
Go
26 lines
769 B
Go
package mempool
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
type outpointToUTXOEntry map[externalapi.DomainOutpoint]externalapi.UTXOEntry
|
|
|
|
type mempoolUTXOSet struct {
|
|
mempool *mempool
|
|
poolUnspentOutputs outpointToUTXOEntry
|
|
}
|
|
|
|
func newMempoolUTXOSet(mp *mempool) *mempoolUTXOSet {
|
|
return &mempoolUTXOSet{
|
|
mempool: mp,
|
|
poolUnspentOutputs: outpointToUTXOEntry{},
|
|
}
|
|
}
|
|
|
|
func (mpus *mempoolUTXOSet) getParentsInPool(transaction *mempoolTransaction) ([]*mempoolTransaction, error) {
|
|
panic("mempoolUTXOSet.getParentsInPool not implemented") // TODO (Mike)
|
|
}
|
|
|
|
func (mpus *mempoolUTXOSet) addTransaction(transaction *mempoolTransaction) error {
|
|
panic("mempoolUTXOSet.addTransaction not implemented") // TODO (Mike)
|
|
}
|