cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local filesystem

This commit is contained in:
Martin Holst Swende
2018-10-15 12:28:44 +02:00
committed by Péter Szilágyi
parent 09d588e0da
commit 42a914a84f
5 changed files with 148 additions and 20 deletions

View File

@ -89,7 +89,7 @@ func runCmd(ctx *cli.Context) error {
genesisConfig *core.Genesis
)
if ctx.GlobalBool(MachineFlag.Name) {
tracer = NewJSONLogger(logconfig, os.Stdout)
tracer = vm.NewJSONLogger(logconfig, os.Stdout)
} else if ctx.GlobalBool(DebugFlag.Name) {
debugLogger = vm.NewStructLogger(logconfig)
tracer = debugLogger