-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48cf0df
commit 2a002c1
Showing
17 changed files
with
159 additions
and
45 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,42 @@ | ||
--- | ||
title: Sync private networks | ||
sidebar_position: 6 | ||
description: Sync node types for Besu private networks | ||
tags: | ||
- private networks | ||
--- | ||
|
||
## Private network syncing | ||
|
||
For private, permissioned blockchain networks, Besu uses the same synchronization modes as public networks, but with specific configurations for private network needs. | ||
|
||
:::note | ||
|
||
When you configure syncing for a private network, ensure all nodes use compatible sync modes and configurations. | ||
|
||
::: | ||
|
||
When setting up a private network, consider the following: | ||
|
||
- Use the same sync modes as public networks (snap, checkpoint, fast, or full sync). | ||
- Configure the network with a custom genesis file. | ||
- Set the network ID and bootnode(s) specific to your private network. | ||
- Implement permissioning features to control network access. | ||
|
||
:::warning Experimental feature | ||
|
||
`--Xsnapsync-bft-enabled` is an experimental feature. It is not stable and is not fully supported in all versions of Besu. Use this option with caution. | ||
|
||
Use `--Xsnapsync-bft-enabled` in private, permissioned networks that use BFT consensus mechanisms. | ||
When enabled, this option allows Besu to use Snap sync on BFT networks. Use this option in combination with the `--sync-mode=SNAP` option. The default is `false`. | ||
|
||
::: | ||
|
||
Choose the appropriate sync mode based on your private network's requirements and node purposes. | ||
|
||
| Sync Mode | Description | Requirements | Method | Limitations | | ||
|-----------|-------------|--------------|--------|-------------| | ||
| Snap | Recommended for fastest sync and lowest storage requirements on Mainnet.| Available as an _experimental feature_ in Besu version 24.7.1 or later | Downloads as many leaves of the trie as possible, reconstructs the trie locally. Snap is faster than Fast sync. | Cannot switch from fast sync to snap sync mid-process. | | ||
| Checkpoint | Efficient sync from a specific checkpoint block configured in the genesis file. | Besu version 22.4.3 or later | Syncs from a checkpoint block defined in the genesis file. Is the fast sync and has the lowest storage requirements. | Not supported for QBFT or IBFT 2.0 networks without a checkpoint configuration. | | ||
| Fast | Default for named networks except the dev development network. | None | Downloads block headers and transaction receipts, verifies chain from genesis block. | Not supported with private transactions. | | ||
| Full | Downloads and verifies the entire blockchain and state from the genesis block. This builds an archive node, with full state history.| None | Downloads entire blockchain, verifies all states from genesis block. | Slowest sync mode, requires the most disk space. | |
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
Oops, something went wrong.