From 547ef1ecbd86eec8a371c969e8991a83d2a3ab3e Mon Sep 17 00:00:00 2001 From: Hao Bryan Cheng Date: Tue, 18 Oct 2016 12:57:48 -0700 Subject: [PATCH] core/vm: 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..aa13566677 100644 --- a/core/vm/vm.go +++ b/core/vm/vm.go @@ -79,6 +79,10 @@ func (evm *EVM) Run(contract *Contract, input []byte) (ret []byte, err error) { } var program *Program if evm.cfg.EnableJit { + // JIT support has fallen off; gas calculations are no longer in consensus + // with the network. + panic("JIT not supported in this release") + // If the JIT is enabled check the status of the JIT program, // if it doesn't exist compile a new program in a separate // goroutine or wait for compilation to finish if the JIT is