2021-11-23 16:44:46 +00:00
|
|
|
package main
|
|
|
|
|
2022-05-26 12:08:25 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/ledgerwatch/erigon/cmd/devnettest/commands"
|
|
|
|
"github.com/ledgerwatch/erigon/cmd/devnettest/erigon"
|
2022-06-01 21:47:12 +00:00
|
|
|
"github.com/ledgerwatch/erigon/cmd/devnettest/services"
|
2022-05-26 12:08:25 +00:00
|
|
|
)
|
2021-11-23 16:44:46 +00:00
|
|
|
|
|
|
|
func main() {
|
2022-05-26 12:08:25 +00:00
|
|
|
erigon.StartProcess()
|
|
|
|
|
|
|
|
time.Sleep(10 * time.Second)
|
|
|
|
|
|
|
|
fmt.Printf("SUCCESS => Started!\n\n")
|
|
|
|
err := commands.Execute()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2022-06-01 21:47:12 +00:00
|
|
|
|
|
|
|
defer services.ClearDevDB()
|
2021-11-23 16:44:46 +00:00
|
|
|
}
|