MCPcopy Create free account
hub / github.com/DNAProject/DNA / checkFeaturesEnabled

Method checkFeaturesEnabled

vm/neovm/executor.go:105–114  ·  view source on GitHub ↗
(opcode OpCode)

Source from the content-addressed store, hash-verified

103}
104
105func (self *Executor) checkFeaturesEnabled(opcode OpCode) error {
106 switch opcode {
107 case HASKEY, KEYS, DCALL, VALUES:
108 if self.Features.DisableHasKey {
109 return errors.ERR_NOT_SUPPORT_OPCODE
110 }
111 }
112
113 return nil
114}
115
116func (self *Executor) ExecuteOp(opcode OpCode, context *ExecutionContext) (VMState, error) {
117 if err := self.checkFeaturesEnabled(opcode); err != nil {

Callers 1

ExecuteOpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected