-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add xperimental features and add table for how sync works (#1662)
* update with experimental Signed-off-by: Joan E <[email protected]> * update spelling Signed-off-by: Joan E <[email protected]> * fix typo Signed-off-by: Joan E <[email protected]> * fix typo Signed-off-by: Joan E <[email protected]> * add suggestions Signed-off-by: Joan E <[email protected]> * Apply suggestions from code review Co-authored-by: Simon Dudley <[email protected]> Signed-off-by: Joan E <[email protected]> * fix broken links Signed-off-by: Joan E <[email protected]> * Apply suggestions from code review Co-authored-by: Alexandra Carrillo <[email protected]> Signed-off-by: Joan E <[email protected]> * update with suggestions Signed-off-by: Joan E <[email protected]> * update broken Signed-off-by: Joan E <[email protected]> * Apply suggestions from code review Co-authored-by: Alexandra Carrillo <[email protected]> Signed-off-by: Joan E <[email protected]> * Update table for consistency Signed-off-by: Joan E <[email protected]> * Apply suggestions from code review Co-authored-by: Alexandra Carrillo <[email protected]> Signed-off-by: Joan E <[email protected]> --------- Signed-off-by: Joan E <[email protected]> Co-authored-by: Simon Dudley <[email protected]> Co-authored-by: Alexandra Carrillo <[email protected]>
- Loading branch information
1 parent
2c6dc29
commit 575a049
Showing
22 changed files
with
155 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
sidebar_label: Node synchronization | ||
sidebar_position: 4 | ||
description: Learn about node synchronization for private networks. | ||
tags: | ||
- private networks | ||
--- | ||
|
||
# Node synchronization for private networks | ||
|
||
For private, permissioned blockchain networks, Besu uses the same [synchronization | ||
modes](/public-networks/concepts/node-sync.md) as public networks, but with specific configurations for private network needs. | ||
|
||
To sync Besu on a private network: | ||
|
||
- Ensure all nodes use compatible sync modes and configurations. | ||
- Configure the network with a custom genesis file. | ||
- Set the network ID and bootnodes specific to your private network. | ||
- Implement permissioning features to control network access. | ||
|
||
Choose the appropriate sync mode based on your private network's requirements and node purposes. | ||
|
||
| Sync mode | Description | Requirements | Limitations | | ||
|-----------|-------------|--------------|-------------| | ||
| [Snap](../../public-networks/concepts/node-sync.md#snap-synchronization) | Recommended for fastest sync and lowest storage requirements on Mainnet. Downloads as many leaves of the trie as possible and reconstructs the trie locally. Faster than fast sync. | Available as an _early access feature_ in Besu version 24.7.1 or later | Cannot switch from fast sync to snap sync mid-process. | | ||
| [Checkpoint](../../public-networks/concepts/node-sync.md#checkpoint-synchronization) | Syncs from a specific checkpoint block configured in the genesis file. Fastest sync mode with lowest storage requirements. | Besu version 22.4.3 or later | Not supported for QBFT or IBFT 2.0 networks without a checkpoint configuration. | | ||
| [Fast](../../public-networks/concepts/node-sync.md#fast-synchronization) |Default for named networks except `dev`. Downloads block headers and transaction receipts, verifies chain from genesis block. | None | Not supported with private transactions. | | ||
| [Full](../../public-networks/concepts/node-sync.md#run-an-archive-node) | Downloads and verifies the entire blockchain and state from genesis block, building an archive node with full state history. | None | Slowest sync mode, requires the most disk space. | | ||
|
||
:::warning Early access feature | ||
|
||
`--Xsnapsync-bft-enabled` is an early access feature available in Besu version 24.7.1 and later. | ||
It is not stable, so use this option with caution. | ||
|
||
Use `--Xsnapsync-bft-enabled` with `--sync-mode=SNAP` to enable snap sync in QBFT and IBFT 2.0 private networks. | ||
|
||
::: | ||
|
||
:::tip | ||
|
||
We recommend snap sync because it follows the Ethereum specification and enables you to serve full historical data. | ||
|
||
::: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
docs/public-networks/concepts/parallel-transaction-execution.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"label": "Transactions", | ||
"position": 5 | ||
"position": 6 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.