github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/tests/fuzzers/stacktrie/debug/main.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "os" 6 7 "github.com/ethereum/go-ethereum/common" 8 "github.com/ethereum/go-ethereum/tests/fuzzers/stacktrie" 9 ) 10 11 func main() { 12 if len(os.Args) != 2 { 13 fmt.Fprintf(os.Stderr, "Usage: debug <file>") 14 os.Exit(1) 15 } 16 crasher := os.Args[1] 17 18 data := common.VerifyCrasher(crasher) 19 if data == nil { 20 return 21 } 22 23 stacktrie.Debug(data) 24 }