mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-03 12:46:43 +00:00

* [NOD-1567] Add clone methods to data stores types * [NOD-1567] Fix comments * [NOD-1567] Fix test
15 lines
611 B
Go
15 lines
611 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// UTXODiffStore represents a store of UTXODiffs
|
|
type UTXODiffStore interface {
|
|
Store
|
|
Stage(blockHash *externalapi.DomainHash, utxoDiff *UTXODiff, utxoDiffChild *externalapi.DomainHash)
|
|
IsStaged() bool
|
|
UTXODiff(dbContext DBReader, blockHash *externalapi.DomainHash) (*UTXODiff, error)
|
|
UTXODiffChild(dbContext DBReader, blockHash *externalapi.DomainHash) (*externalapi.DomainHash, error)
|
|
HasUTXODiffChild(dbContext DBReader, blockHash *externalapi.DomainHash) (bool, error)
|
|
Delete(blockHash *externalapi.DomainHash)
|
|
}
|