kaspad/domain/consensus/model/interface_datastructures_pruningstore.go
Ori Newman 14fbe50636
[NOD-1493] Implement serialization in data stores (#983)
* [NOD-1493] Implement serialization in data stores

* [NOD-1493] Remove redundant functions

* [NOD-1493] Use bluesAnticoneSizesToDBBluesAnticoneSizes inside BlockGHOSTDAGDataToDBBlockGHOSTDAGData
2020-10-29 17:39:35 +02:00

13 lines
429 B
Go

package model
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
// PruningStore represents a store for the current pruning state
type PruningStore interface {
Store
Stage(pruningPointBlockHash *externalapi.DomainHash, pruningPointUTXOSetBytes []byte)
IsStaged() bool
PruningPoint(dbContext DBReader) (*externalapi.DomainHash, error)
PruningPointSerializedUTXOSet(dbContext DBReader) ([]byte, error)
}