Added the 'enable-upnp' flag to the list of command line args (#2860)

* Added the 'enable-upnp' flag to the list of supported command line arguments.

If the user specifies this feature flag (adds --enable-upnp as an argument) - the Beacon-chain and Validator services, when started, will initialize libp2p with the UPNP options.

* Added the new arg to usage.go due to test failure

* Update shared/p2p/service.go

Changed the logging according to Preston's recommendation.

Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com>

* Code review changes:

1. File formatting.
2. Command line arg more detailed description.
This commit is contained in:
Dan
2019-06-26 22:59:37 +03:00
committed by terence tsao
parent 9bd6147027
commit 9ac950f480
7 changed files with 19 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ var appHelpFlagGroups = []flagGroup{
cmd.P2PPrivKey,
cmd.P2PWhitelist,
cmd.StaticPeers,
cmd.EnableUPnPFlag,
},
},
{