From b46e4244ab17b696674cb3e263fe407e557e8127 Mon Sep 17 00:00:00 2001 From: Jhih-Ming Huang Date: Fri, 15 Mar 2019 16:02:49 +0800 Subject: 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. --- core/vm/vm.go | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3