mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +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. |
||
---|---|---|
.. | ||
default_flags.go | ||
flags.go | ||
helpers.go |