From bc1c6bdabc70ec3e0e9266c1ea2a25b28a31eec6 Mon Sep 17 00:00:00 2001 From: Joan E <153745173+joaniefromtheblock@users.noreply.github.com> Date: Wed, 31 Jan 2024 05:36:35 -0800 Subject: [PATCH] Add fast sync configuration note (#1486) --- .../how-to/connect/manage-peers.md | 2 +- docs/public-networks/reference/cli/options.md | 92 +++++++++---------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/docs/public-networks/how-to/connect/manage-peers.md b/docs/public-networks/how-to/connect/manage-peers.md index 84e29fe2573..79d8e8b895d 100644 --- a/docs/public-networks/how-to/connect/manage-peers.md +++ b/docs/public-networks/how-to/connect/manage-peers.md @@ -37,7 +37,7 @@ Note, `Xp2p-peer-lower-bound` is an early access option. ## Limit remote connections -Prevent eclipse attacks when using [`--sync-mode`](../../reference/cli/options.md#sync-mode) and [`--fast-sync-min-peers`](../../reference/cli/options.md#fast-sync-min-peers) on public networks by enabling the [remote connection limits](../../reference/cli/options.md#remote-connections-limit-enabled). +Prevent eclipse attacks when using [`--sync-mode`](../../reference/cli/options.md#sync-mode) and [`--fast-sync-min-peers`](../../reference/cli/options.md##sync-min-peers-fast-sync-min-peers) on public networks by enabling the [remote connection limits](../../reference/cli/options.md#remote-connections-limit-enabled). In private and permissioned networks with only trusted peers, enabling the remote connection limits is unnecessary and might adversely affect the speed at which nodes can join the network. Limiting remote connections can cause a closed group of peers to form when the number of nodes in the network is slightly higher than [`--max-peers`](../../reference/cli/options.md#max-peers). The nodes in this closed group are all connected to each other and can't accept more connections. diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index c2cac081a57..37f2e899ade 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -966,52 +966,6 @@ ethstats-contact="contact@mail.com" Contact email address to send to the Ethstats server specified by [`--ethstats`](#ethstats). -### `sync-min-peers` - - - - - -```bash ---sync-min-peers= -``` - - - - - -```bash ---sync-min-peers=8 -``` - - - - - -```bash -BESU_FAST_SYNC_MIN_PEERS=8 -``` - - - - - -```bash -sync-min-peers=8 -``` - - - - - -The minimum number of peers required before starting [sync](../../get-started/connect/sync-node.md). The default is 5. - -:::info - -This option does not apply to PoS networks. - -::: - ### `genesis-file` @@ -4555,6 +4509,52 @@ strict-tx-replay-protection-enabled=false Enables or disables replay protection, in accordance with [EIP-155](https://eips.ethereum.org/EIPS/eip-155), on transactions submitted using JSON-RPC. The default is `false`. +### `sync-min-peers`, `fast-sync-min-peers` + + + + + +```bash +--sync-min-peers= +``` + + + + + +```bash +--sync-min-peers=8 +``` + + + + + +```bash +BESU_SYNC_MIN_PEERS=8 +``` + + + + + +```bash +sync-min-peers=8 +``` + + + + + +The minimum number of peers required before starting [sync](../../get-started/connect/sync-node.md). The default is `5`. Set to `1` to enable static peers to contribute to the initial sync. + +:::info + +This option does not apply to Proof of Stake networks. + +::: + ### `sync-mode`