mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 18:56:41 +00:00

* [NOD-1488] Get rid of dbaccess * [NOD-1488] Rename dbwrapper to dbmanager * [NOD-1488] Create DBWriter interface * [NOD-1488] Fix block header store * [NOD-1488] Rename dbwrapper.go to dbmanager.go
14 lines
550 B
Go
14 lines
550 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)
|
|
Delete(dbTx DBTransaction, blockHash *externalapi.DomainHash) error
|
|
}
|