Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light Client Mode #2837

Open
Danie0918 opened this issue Sep 8, 2023 · 0 comments
Open

Light Client Mode #2837

Danie0918 opened this issue Sep 8, 2023 · 0 comments
Assignees
Labels
Advanced Features Guide subcategories Document Guide [Help documentation] beginners guide

Comments

@Danie0918
Copy link
Collaborator

Danie0918 commented Sep 8, 2023

Light Client Mode is a connection mode for Neuron that connects to the built-in CKB Light Node Network. It downloads a portion of the blockchain data to obtain necessary information compared to a full node. This gives Neuron faster access to the CKB blockchain. (Attention : Currently, light client mode is only supported on the test network, with support for the main network to follow)

Light Client Mode Advantages

  • Higher synchronization speed: Light Client Mode enables faster synchronization of blockchain data, saving users' time and network bandwidth.
  • Less disk usage: Light Client Mode requires only a fraction of the blockchain data to be stored, resulting in less storage space requirement compared to a full node.

Using a MacBook Pro (13-inch, M1, 2020) device as an example, we conducted a realistic test of synchronization from block 0 to the latest block 9,380,828 (2023/05/22 Pudge network data):

Light Client Mode: The synchronization process consumed about 5.5 hours and approximately 45MB of disk space during running. (The disk usage is related to the transaction count, and this test included 782 transactions.)
Full Node Mode: It took about 36 hours to synchronize 107.8GB of data. (Excluding the time to find an assumed valid target block.)

In the above test scenario, using a light node compared to a full node reduced synchronization time by 84.7% and disk usage by 99.9%. (Please note that these numbers are for reference only and may vary depending on different equipment, network conditions, and account data.)

image

@Danie0918 Danie0918 added Guide [Help documentation] beginners guide Advanced Features Guide subcategories Document labels Sep 8, 2023
@WhiteMinds WhiteMinds added Advanced Features Guide subcategories and removed Advanced Features Guide subcategories labels Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Advanced Features Guide subcategories Document Guide [Help documentation] beginners guide
Projects
None yet
Development

No branches or pull requests

4 participants