aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-09 15:38:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-09 15:38:03 +0800
commit4ea493e7eb9fa3b3695a22487de2605e8da1d2fa (patch)
tree1a5e92185424d3b300a3516b25c9ebe10f807c90 /cmd/evm
parentc60f6f62147048f80a0e092b483318af88b5d78b (diff)
downloadgo-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.gz
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.bz2
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.lz
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.xz
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.zst
go-tangerine-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.zip
cmd: various golint fixes (#16700)
* cmd: various golint fixes * cmd: update to pr change request * cmd: update to pr change request
Diffstat (limited to 'cmd/evm')
-rw-r--r--cmd/evm/json_logger.go2
-rw-r--r--cmd/evm/staterunner.go2
2 files changed, 4 insertions, 0 deletions
diff --git a/cmd/evm/json_logger.go b/cmd/evm/json_logger.go
index 0e7a91189..f16424fbe 100644
--- a/cmd/evm/json_logger.go
+++ b/cmd/evm/json_logger.go
@@ -32,6 +32,8 @@ type JSONLogger struct {
cfg *vm.LogConfig
}
+// NewJSONLogger creates a new EVM tracer that prints execution steps as JSON objects
+// into the provided stream.
func NewJSONLogger(cfg *vm.LogConfig, writer io.Writer) *JSONLogger {
return &JSONLogger{json.NewEncoder(writer), cfg}
}
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go
index 071ea94ad..6d5ff069f 100644
--- a/cmd/evm/staterunner.go
+++ b/cmd/evm/staterunner.go
@@ -38,6 +38,8 @@ var stateTestCommand = cli.Command{
ArgsUsage: "<file>",
}
+// StatetestResult contains the execution status after running a state test, any
+// error that might have occurred and a dump of the final state if requested.
type StatetestResult struct {
Name string `json:"name"`
Pass bool `json:"pass"`