erigon-pulse/cmd/utils
awskii a124bcf6ac
added --p2p.allowed-port flag (#6263)
Regarding https://github.com/ledgerwatch/erigon/issues/6260

added flag `--p2p.allowed-ports=<porta>,<portb>` to restrict which ports
to use for sentries for different protocol versions.

Default for this flag is `30303, 30304` (first port is inherited from
`--port` flag defaults.
If `--port` is changed and it's new value is not presented in allowed
port list, provided port will be allowed as well as list provided via
`--p2p.allowed-ports`

Port picking is straightforward, we create sentry gRPC server for
protocol over first allowed port that is not already taken.
If there are no allowed ports left, erigon exits with hint.
2022-12-12 13:25:47 +00:00
..
cmd.go move all packages from "internal" folder - to simplify users live (#5857) 2022-10-25 09:58:25 +07:00
customflags_test.go cmd/utils: fix path expansion on windows 2015-08-06 17:18:59 +02:00
customflags.go Upgrade urfave/cli to v2 (#6047) 2022-11-14 17:33:57 +01:00
diskusage_windows.go Inner errors (#2774) 2021-10-04 22:16:52 +07:00
flags_test.go cmd/utils: allow for multiple influxdb tags (#18520) 2019-01-29 09:14:24 +01:00
flags.go added --p2p.allowed-port flag (#6263) 2022-12-12 13:25:47 +00:00