From 0200913250013035ea65c505d7fc661ab0b4fa2d Mon Sep 17 00:00:00 2001 From: fearlessfe <505380967@qq.com> Date: Thu, 21 Mar 2024 22:40:23 +0800 Subject: [PATCH] fix: add flags and change default http addr --- cmd/shisui/main.go | 3 +++ cmd/utils/flags.go | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cmd/shisui/main.go b/cmd/shisui/main.go index 312f291eb586..720bebcf207a 100644 --- a/cmd/shisui/main.go +++ b/cmd/shisui/main.go @@ -39,6 +39,9 @@ var ( portalProtocolFlags = []cli.Flag{ utils.PortalUDPListenAddrFlag, utils.PortalUDPPortFlag, + utils.PortalBootNodesFlag, + utils.PortalPrivateKeyFlag, + utils.PortalNetworksFlag, } historyRpcFlags = []cli.Flag{ utils.PortalRPCListenAddrFlag, diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index e859fd0fc2d4..73764f5de4af 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -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 (