erigon-pulse/cmd/devnettest/main.go
Leonard Chinonso 592fe32217
Refactoring To Increase Code Quality (#4842)
* General cleanup and fixes

* Cleaning part 2

* cleanup part 3

* Refactored staterunner to have a handler function

* Fixed linting

* Cleanup part 4

* Changed the initialization of the require package and updated .golangci.yml

* Fixed lint errors from golangci-lint

* deleted state_recon_1.go

* fixed build error

* Added ReadHeaderTimeouts for httpServer

* made changes to golangci

* Reset golangci.yml
2022-08-04 20:23:00 +07:00

25 lines
411 B
Go

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() {
defer services.ClearDevDB()
erigon.StartProcess()
time.Sleep(10 * time.Second)
fmt.Printf("SUCCESS => Started!\n\n")
err := commands.Execute()
if err != nil {
panic(err)
}
}