mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 08:28:50 +00:00
* [NOD-1475] Add Stage, Discard, and Commit methods to all stores. * [NOD-1475] Simplify interfaces for processes. * [NOD-1475] Fix GHOSTDAGManager. * [NOD-1475] Simplify ChooseSelectedParent. * [NOD-1475] Remove errors from Stage functions. * [NOD-1475] Add IsStaged to all data structures. * [NOD-1475] Remove isDisqualified from CalculateConsensusStateChanges. * [NOD-1475] Add dependency from ConsensusStateManager to BlockStatusStore. * [NOD-1475] Fix a comment. * [NOD-1475] Add ReachabilityReindexRoot to reachabilityDataStore. * [NOD-1475] Fix a comment. * [NOD-1475] Rename IsStaged to IsAnythingStaged.
15 lines
632 B
Go
15 lines
632 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// BlockValidator exposes a set of validation classes, after which
|
|
// it's possible to determine whether a block is valid
|
|
type BlockValidator interface {
|
|
ValidateHeaderInIsolation(blockHash *externalapi.DomainHash) error
|
|
ValidateBodyInIsolation(blockHash *externalapi.DomainHash) error
|
|
ValidateHeaderInContext(blockHash *externalapi.DomainHash) error
|
|
ValidateBodyInContext(blockHash *externalapi.DomainHash) error
|
|
ValidateAgainstPastUTXO(blockHash *externalapi.DomainHash) error
|
|
ValidateFinality(blockHash *externalapi.DomainHash) error
|
|
}
|