mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 03:22:18 +00:00
0be3044b7e
* rename * rename "make grpc" * rename "abi bindings templates" * rename "abi bindings templates"
24 lines
404 B
Go
24 lines
404 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"io/ioutil"
|
|
"os"
|
|
|
|
"github.com/ledgerwatch/erigon/tests/fuzzers/difficulty"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) != 2 {
|
|
fmt.Fprintf(os.Stderr, "Usage: debug <file>")
|
|
os.Exit(1)
|
|
}
|
|
crasher := os.Args[1]
|
|
data, err := ioutil.ReadFile(crasher)
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "error loading crasher %v: %v", crasher, err)
|
|
os.Exit(1)
|
|
}
|
|
difficulty.Fuzz(data)
|
|
}
|