fix: add flags and change default http addr

This commit is contained in:
fearlessfe 2024-03-21 22:40:23 +08:00 committed by Chen Kai
parent 317997f25f
commit 0200913250
2 changed files with 10 additions and 2 deletions

View file

@ -39,6 +39,9 @@ var (
portalProtocolFlags = []cli.Flag{
utils.PortalUDPListenAddrFlag,
utils.PortalUDPPortFlag,
utils.PortalBootNodesFlag,
utils.PortalPrivateKeyFlag,
utils.PortalNetworksFlag,
}
historyRpcFlags = []cli.Flag{
utils.PortalRPCListenAddrFlag,

View file

@ -948,7 +948,6 @@ Please note that --` + MetricsHTTPFlag.Name + ` must be set to start the server.
PortalRPCListenAddrFlag = &cli.StringFlag{
Name: "rpc.addr",
Usage: "HTTP-RPC server listening interface",
Value: node.DefaultHTTPHost,
Category: flags.PortalNetworkCategory,
}
@ -1001,10 +1000,16 @@ Please note that --` + MetricsHTTPFlag.Name + ` must be set to start the server.
}
PortalBootNodesFlag = &cli.StringSliceFlag{
Name: "bootnode",
Name: "bootnodes",
Usage: "bootnode of p2p network with ENR format for portal hive test",
Category: flags.PortalNetworkCategory,
}
PortalNetworksFlag = &cli.StringSliceFlag{
Name: "networks",
Usage: "portal sub networks: history, beacon, state",
Category: flags.PortalNetworkCategory,
}
)
var (