lotus/chain/validation/config.go

25 lines
383 B
Go
Raw Normal View History

2020-02-27 22:17:08 +00:00
package validation
//
// ValidationConfig
//
type ValidationConfig struct {
trackGas bool
checkExitCode bool
checkReturnValue bool
}
func (v ValidationConfig) ValidateGas() bool {
return v.trackGas
}
func (v ValidationConfig) ValidateExitCode() bool {
return v.checkExitCode
}
func (v ValidationConfig) ValidateReturnValue() bool {
return v.checkReturnValue
}