mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 04:03:49 +00:00
a124bcf6ac
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. |
||
---|---|---|
.. | ||
cmd.go | ||
customflags_test.go | ||
customflags.go | ||
diskusage_windows.go | ||
flags_test.go | ||
flags.go |