mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 07:16:47 +00:00

* 1) Calculate pruning point incrementally 2) Add IsValidPruningPoint to pruning manager and consensus 3) Use reachability children for selected child iterator * Add request IBD root hash flow * Fix UpdatePruningPointByVirtual and IsValidPruningPoint * Regenerate messages.pb.go * Make the pruning point the earliest chain block with finality interval higher than the previous pruning point * Fix merge errors
10 lines
289 B
Go
10 lines
289 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(block *externalapi.DomainHash) (bool, error)
|
|
}
|