aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm.huang@cobinhood.com>2019-03-15 16:02:49 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-04-11 10:39:59 +0800
commit73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e (patch)
tree5b9ea4dff00c7aacc44c06f21bd15baf945a6ffb
parent2edfcad88c35b9f777a9a709ac9d54e9c8c4bec5 (diff)
downloaddexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar.gz
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar.bz2
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar.lz
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar.xz
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.tar.zst
dexon-73d09b2e3fac3ec63a0c20a8f426a7c7a11af77e.zip
core: vm: remain first byte, if it is not VM enum.
* If first byte is not VM enum, we should reserve it as checking VM type. * Remove debug print.
-rw-r--r--core/vm/vm.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/vm/vm.go b/core/vm/vm.go
index 4c39d401c..99ab2ed90 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -1,7 +1,6 @@
package vm
import (
- "fmt"
"math/big"
"github.com/dexon-foundation/dexon/common"
@@ -97,8 +96,7 @@ func getVMAndCode(code []byte) (byte, []byte) {
case EVM, SQLVM:
return code[0], code[1:]
default:
- fmt.Printf("Unknown code prefix %x\n", code[0])
- return EVM, code[1:]
+ return EVM, code
}
}
return EVM, code