From 3d5442be247676e7ed99e44febd7506030b6b2f9 Mon Sep 17 00:00:00 2001 From: Hao Bryan Cheng Date: Tue, 18 Oct 2016 12:44:50 -0700 Subject: [PATCH] Panic if JIT is invoked --- core/vm/vm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/vm/vm.go b/core/vm/vm.go index fcffcf3177..7492576b2d 100644 --- a/core/vm/vm.go +++ b/core/vm/vm.go @@ -88,6 +88,10 @@ func (evm *EVM) Run(contract *Contract, input []byte) (ret []byte, err error) { return RunProgram(GetProgram(codehash), evm.env, contract, input) case progUnknown: if evm.cfg.ForceJit { + // JIT support has fallen off; gas calculations are no longer in consensus + // with the network. + panic("JIT not supported in this release") + // Create and compile program program = NewProgram(contract.Code) perr := CompileProgram(program)