mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-24 07:46:45 +00:00

* [NOD-1493] Implement serialization in data stores * [NOD-1493] Remove redundant functions * [NOD-1493] Use bluesAnticoneSizesToDBBluesAnticoneSizes inside BlockGHOSTDAGDataToDBBlockGHOSTDAGData
13 lines
429 B
Go
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)
|
|
}
|