nervosnetwork / nervosnetwork/neuron

Light Client Mode

Open
#2,837 0 comments 0 reactions 3 assignees View on GitHub

@Danie0918 is already working on this.

Since Sep 8, 2023.

Advanced Features Document Guide
Dominant language
TypeScript
Stars
204
Forks
95
Avg merge
8d 9h
Merged PRs (30d)
4

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.