Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates a tx against the latest committed state and preceding valid transactions with in the same block
func NewValidator ¶
func NewValidator(db statedb.VersionedDB) *Validator
NewValidator constructs StateValidator 实例化一个validator
func (*Validator) ValidateAndPrepareBatch ¶
func (v *Validator) ValidateAndPrepareBatch(block *common.Block, doMVCCValidation bool) (*statedb.UpdateBatch, error)
ValidateAndPrepareBatch implements method in Validator interface 读写集验证入口
Click to show internal directories.
Click to hide internal directories.