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-03-26 17:48:23 +0800
commit49aa593d27d307bfc17378cdb65e94dcf3c750f1 (patch)
tree9043b3960274d4a38dfd4ebae7b54367fdb747b6
parentc10cffd27ddfb398e2af0e2b1d324daab83dbfe0 (diff)
downloaddexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar.gz
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar.bz2
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar.lz
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar.xz
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.tar.zst
dexon-49aa593d27d307bfc17378cdb65e94dcf3c750f1.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