package main
import (
"os"
"github.com/ethereum/go-ethereum/log"
"github.com/urfave/cli/v2"
"github.com/ethereum-optimism/optimism/op-bootnode/bootnode"
"github.com/ethereum-optimism/optimism/op-bootnode/flags"
oplog "github.com/ethereum-optimism/optimism/op-service/log"
)
func main() {
oplog.SetupDefaults()
app := cli.NewApp()
app.Flags = flags.Flags
app.Name = "bootnode"
app.Usage = "Rollup Bootnode"
app.Description = "Broadcasts incoming P2P peers to each other, enabling peer bootstrapping."
app.Action = bootnode.Main
err := app.Run(os.Args)
if err != nil {
log.Crit("Application failed", "message", err)
}
}
-
Andreas Bigger authored7e385008