erigon-pulse/cmd/devnettest/main.go

25 lines
411 B
Go
Raw Normal View History

package main
import (
"fmt"
"time"
"github.com/ledgerwatch/erigon/cmd/devnettest/commands"
"github.com/ledgerwatch/erigon/cmd/devnettest/erigon"
"github.com/ledgerwatch/erigon/cmd/devnettest/services"
)
func main() {
erigon.StartProcess()
time.Sleep(10 * time.Second)
fmt.Printf("SUCCESS => Started!\n\n")
err := commands.Execute()
if err != nil {
panic(err)
}
defer services.ClearDevDB()
}