mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-13 13:00:10 +00:00

* ignore type flag * Ignore type flag of relative time lock - interpret as DAA score * Split verifyLockTime to functions with and without threshold.relative lockTimes dont need threshold check * Change function name and order of the functions calls Co-authored-by: tal <tal@daglabs.com>
17 lines
706 B
Go
17 lines
706 B
Go
package model
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// TransactionValidator exposes a set of validation classes, after which
|
|
// it's possible to determine whether a transaction is valid
|
|
type TransactionValidator interface {
|
|
ValidateTransactionInIsolation(transaction *externalapi.DomainTransaction) error
|
|
ValidateTransactionInContextIgnoringUTXO(stagingArea *StagingArea, tx *externalapi.DomainTransaction,
|
|
povBlockHash *externalapi.DomainHash) error
|
|
ValidateTransactionInContextAndPopulateFee(stagingArea *StagingArea,
|
|
tx *externalapi.DomainTransaction, povBlockHash *externalapi.DomainHash) error
|
|
PopulateMass(transaction *externalapi.DomainTransaction)
|
|
}
|