@@ -22,21 +22,18 @@ import (
2222 "fmt"
2323 "io"
2424 "os"
25+ goruntime "runtime"
2526 "runtime/pprof"
2627 "time"
2728
28- "github.com/XinFinOrg/XDPoSChain/core/rawdb"
29-
30- goruntime "runtime"
31-
3229 "github.com/XinFinOrg/XDPoSChain/cmd/evm/internal/compiler"
3330 "github.com/XinFinOrg/XDPoSChain/cmd/utils"
3431 "github.com/XinFinOrg/XDPoSChain/common"
3532 "github.com/XinFinOrg/XDPoSChain/core"
33+ "github.com/XinFinOrg/XDPoSChain/core/rawdb"
3634 "github.com/XinFinOrg/XDPoSChain/core/state"
3735 "github.com/XinFinOrg/XDPoSChain/core/vm"
3836 "github.com/XinFinOrg/XDPoSChain/core/vm/runtime"
39- "github.com/XinFinOrg/XDPoSChain/log"
4037 "github.com/XinFinOrg/XDPoSChain/params"
4138 cli "gopkg.in/urfave/cli.v1"
4239)
@@ -71,12 +68,12 @@ func readGenesis(genesisPath string) *core.Genesis {
7168}
7269
7370func runCmd (ctx * cli.Context ) error {
74- glogger := log .NewGlogHandler (log .StreamHandler (os .Stderr , log .TerminalFormat (false )))
75- glogger .Verbosity (log .Lvl (ctx .GlobalInt (VerbosityFlag .Name )))
76- log .Root ().SetHandler (glogger )
7771 logconfig := & vm.LogConfig {
78- EnableMemory : ! ctx .GlobalBool (DisableMemoryFlag .Name ),
79- DisableStack : ctx .GlobalBool (DisableStackFlag .Name ),
72+ EnableMemory : ! ctx .GlobalBool (DisableMemoryFlag .Name ),
73+ DisableStack : ctx .GlobalBool (DisableStackFlag .Name ),
74+ DisableStorage : ctx .Bool (DisableStorageFlag .Name ),
75+ EnableReturnData : ! ctx .Bool (DisableReturnDataFlag .Name ),
76+ Debug : ctx .Bool (DebugFlag .Name ),
8077 }
8178
8279 var (
@@ -95,6 +92,7 @@ func runCmd(ctx *cli.Context) error {
9592 } else {
9693 debugLogger = vm .NewStructLogger (logconfig )
9794 }
95+
9896 if ctx .GlobalString (GenesisFlag .Name ) != "" {
9997 gen := readGenesis (ctx .GlobalString (GenesisFlag .Name ))
10098 db := rawdb .NewMemoryDatabase ()
0 commit comments