mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-31 09:03:46 +00:00
20 lines
385 B
Go
20 lines
385 B
Go
package main
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/ethereum/go-ethereum/logger/glog"
|
|
"github.com/ethereum/go-ethereum/p2p/simulations"
|
|
)
|
|
|
|
func main() {
|
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
|
glog.SetV(6)
|
|
glog.SetToStderr(true)
|
|
|
|
c, quitc := simulations.NewSessionController(simulations.DefaultNet)
|
|
simulations.StartRestApiServer("8888", c)
|
|
// wait until server shuts down
|
|
<-quitc
|
|
|
|
}
|