mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 16:38:39 +00:00
14 lines
552 B
Go
14 lines
552 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// PruningManager resolves and manages the current pruning point
|
|
type PruningManager interface {
|
|
UpdatePruningPointByVirtual() error
|
|
IsValidPruningPoint(blockHash *externalapi.DomainHash) (bool, error)
|
|
ClearImportedPruningPointData() error
|
|
AppendImportedPruningPointUTXOs(outpointAndUTXOEntryPairs []*externalapi.OutpointAndUTXOEntryPair) error
|
|
UpdatePruningPointUTXOSetIfRequired() error
|
|
PruneAllBlocksBelow(pruningPointHash *externalapi.DomainHash) error
|
|
}
|