mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 23:36:56 +00:00

* Update pruningmanager interface * Add a ProtoUTXOSet to hashserialization * Update miningmanager with all the necessary stores and managers * Implement mining manager * Prune P.AC not in V.Past * PruningManager fix all review comments
14 lines
480 B
Go
14 lines
480 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)
|
|
HasPruningPoint(dbContext DBReader) (bool, error)
|
|
PruningPointSerializedUTXOSet(dbContext DBReader) ([]byte, error)
|
|
}
|