mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 00:23:14 +00:00
30 lines
933 B
Go
30 lines
933 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)
|
|
}
|
|
|
|
func (mpus *mempoolUTXOSet) checkDoubleSpends(transaction *mempoolTransaction) error {
|
|
panic("mempoolUTXOSet.checkDoubleSpends not implemented") // TODO (Mike)
|
|
}
|