Skip to content

Commit

Permalink
fix: add flags and change default http addr
Browse files Browse the repository at this point in the history
  • Loading branch information
fearlessfe authored and GrapeBaBa committed Mar 22, 2024
1 parent 317997f commit 0200913
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmd/shisui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ var (
portalProtocolFlags = []cli.Flag{
utils.PortalUDPListenAddrFlag,
utils.PortalUDPPortFlag,
utils.PortalBootNodesFlag,
utils.PortalPrivateKeyFlag,
utils.PortalNetworksFlag,
}
historyRpcFlags = []cli.Flag{
utils.PortalRPCListenAddrFlag,
Expand Down
9 changes: 7 additions & 2 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 0200913

Please sign in to comment.