diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 02:41:56 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 02:41:56 +0800 |
commit | 347cb272bea3f5abddc6ee2f63917f3b8f655d43 (patch) | |
tree | 16e0b17bd57469589445827c9bda6161ef99be76 /cmd | |
parent | d1c872bace8f3e87f34bc97167892c09ab4de193 (diff) | |
download | dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.gz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.bz2 dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.lz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.xz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.zst dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.zip |
fixed ethtest
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ethtest/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/ethtest/main.go b/cmd/ethtest/main.go index 7c4a727f6..cc5139da1 100644 --- a/cmd/ethtest/main.go +++ b/cmd/ethtest/main.go @@ -38,6 +38,7 @@ import ( "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/tests/helper" + "github.com/ethereum/go-ethereum/vm" ) type Log struct { @@ -164,7 +165,7 @@ func RunVmTest(r io.Reader) (failed int) { } if !bytes.Equal(ethutil.Hex2Bytes(test.PostStateRoot), statedb.Root()) { - fmt.Printf("%s's : Post state root error. Expected %s, got %x", name, test.PostStateRoot, statedb.Root()) + fmt.Printf("%s's : Post state root error. Expected %s, got %x\n", name, test.PostStateRoot, statedb.Root()) failed = 1 } @@ -194,6 +195,7 @@ func RunVmTest(r io.Reader) (failed int) { func main() { helper.Logger.SetLogLevel(5) + vm.Debug = true if len(os.Args) > 1 { os.Exit(RunVmTest(strings.NewReader(os.Args[1]))) |