diff options
author | Martin Holst Swende <martin@swende.se> | 2017-06-07 23:09:08 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-06-07 23:09:08 +0800 |
commit | 80f7c6c2996ad47f70a5070c400b1fd87a20c59c (patch) | |
tree | 8ad4108832ddd5e0b0c2223ebef8c5dad26ad3cd /cmd/evm/main.go | |
parent | bc24b7a91218ab34f10a145467f6ef380a5d22aa (diff) | |
download | dexon-80f7c6c2996ad47f70a5070c400b1fd87a20c59c.tar.gz dexon-80f7c6c2996ad47f70a5070c400b1fd87a20c59c.tar.zst dexon-80f7c6c2996ad47f70a5070c400b1fd87a20c59c.zip |
cmd/evm: add --prestate, --sender, --json flags for fuzzing (#14476)
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r-- | cmd/evm/main.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go index e85d31d03..48a1b92cb 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -90,6 +90,18 @@ var ( Name: "nogasmetering", Usage: "disable gas metering", } + GenesisFlag = cli.StringFlag{ + Name: "prestate", + Usage: "JSON file with prestate (genesis) config", + } + MachineFlag = cli.BoolFlag{ + Name: "json", + Usage: "output trace logs in machine readable format (json)", + } + SenderFlag = cli.StringFlag{ + Name: "sender", + Usage: "The transaction origin", + } ) func init() { @@ -108,6 +120,9 @@ func init() { MemProfileFlag, CPUProfileFlag, StatDumpFlag, + GenesisFlag, + MachineFlag, + SenderFlag, } app.Commands = []cli.Command{ compileCommand, |