erigon-pulse/cmd/devnet/main.go
Leonard Chinonso 9d172ae125
Devnet Remake (#5532)
* Rebuilding the devnet tool for better quality

* Added README

* deleted former devnettest folder

* Correction changes

* Implementation node connection through enode for two nodes

* synced two nodes, moving to logging

* Fixed lint
2022-09-30 21:04:34 +01:00

21 lines
426 B
Go

package main
import (
"github.com/ledgerwatch/erigon/cmd/devnet/node"
"github.com/ledgerwatch/erigon/cmd/devnet/utils"
"sync"
)
func main() {
// wait group variable to prevent main function from terminating until routines are finished
var wg sync.WaitGroup
defer utils.ClearDevDB()
// start the first erigon node in a go routine
node.Start(&wg)
// wait for all goroutines to complete before exiting
wg.Wait()
}