eth-statediff-compliance/pkg/main.go
Roy Crihfield 7ace692eb0
All checks were successful
Test / Run unit tests (push) Successful in 4m26s
Update Geth to 1.13 in Plugeth cases (#6)
Deneb/Cancun fork updates

Reviewed-on: #6
2024-04-12 10:16:04 +00:00

27 lines
352 B
Go

package compliance
import (
"fmt"
"os"
)
func Main() {
if len(os.Args) < 2 {
fmt.Println("usage: dumpdiff <outputdir>")
os.Exit(1)
}
outputDir := os.Args[1]
_, err := os.Stat(outputDir)
if os.IsNotExist(err) {
err = os.MkdirAll(outputDir, 0755)
}
if err != nil {
panic(err)
}
loadChain()
WriteDiffs(outputDir, chain, blocks)
}