mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-30 02:36:42 +00:00

* Split ApplyPruningPointProof to multiple small database transactions. * Increase the timeout duration in TestIBDWithPruning. * Increase the timeout duration in simple-sync. * Explain that if ApplyPruningPointProof fails, the database must be discarded.
11 lines
448 B
Go
11 lines
448 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// PruningProofManager builds, validates and applies pruning proofs.
|
|
type PruningProofManager interface {
|
|
BuildPruningPointProof(stagingArea *StagingArea) (*externalapi.PruningPointProof, error)
|
|
ValidatePruningPointProof(pruningPointProof *externalapi.PruningPointProof) error
|
|
ApplyPruningPointProof(pruningPointProof *externalapi.PruningPointProof) error
|
|
}
|