Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 3.06 KB

archive_node.md

File metadata and controls

36 lines (26 loc) · 3.06 KB

Building an Archive Node

The current Shentu chain network is shentu-2.2, starting from block height 4602989. Follow these steps to build an archive node with complete historical data.

Step 1: Build the Node for shentu-1 Period

  • Download Archive Data: Retrieve the archive data here.
  • Download the shentu-1 Binary: Get the binary here.
  • Initialize the Chain Node: Run the command ${binary} init [moniker] --chain-id shentu-1 --home ${NODE_HOME}.
  • Extract the Archive Data: Use the command lz4 -c -d shentu-1.tar.lz4 | tar -x -C ${NODE_HOME} to extract the data.
  • Download the Genesis File: Obtain the genesis file for shentu-1 and place it in ${NODE_HOME}/config/genesis.json.
  • Start the Archive Node: Launch the archive node with ${binary} start --home ${NODE_HOME}.

Please note that the service will remain at block height 4313500. Due to compatibility issues between the old version of the SDK library and the next version, merging with the shentu-2 node is not possible.

Step 2: Build the Node for the shentu-2 Period

  • Download Archive Data: Retrieve the archive data here.
  • Download the shentu-2 Binary: Get the binary here.
  • Initialize the Chain Node: Run the command ${binary} init [moniker] --chain-id shentu-2 --home ${NODE_HOME}.
  • Extract the Archive Data: Use the command lz4 -c -d shentu-2.tar.lz4 | tar -x -C ${NODE_HOME} to extract the data.
  • Download the Genesis File: Obtain the genesis file for shentu-2 and place it in ${NODE_HOME}/config/genesis.json.
  • Start the Archive Node: Launch the archive node with ${binary} start --home ${NODE_HOME}.

Please note that the service will remain at block height 4423459. Due to compatibility issues between the old version of the SDK library and the next version, merging with the shentu-2.1 node is not possible.

Step 3: Build the Node for the shentu-2.1 Period

  • Download Archive Data: Retrieve the archive data here.
  • Download the shentu-2 Binary: Get the binary here.
  • Initialize the Chain Node: Run the command ${binary} init [moniker] --chain-id shentu-2.1 --home ${NODE_HOME}.
  • Extract the Archive Data: Use the command lz4 -c -d shentu-2.1.tar.lz4 | tar -x -C ${NODE_HOME} to extract the data.
  • Download the Genesis File: Obtain the genesis file for shentu-2.1 and place it in ${NODE_HOME}/config/genesis.json.
  • Start the Archive Node: Launch the archive node with ${binary} start --home ${NODE_HOME}.

Please note that the service will remain at block height 4602988. Due to compatibility issues between the old version of the SDK library and the current version, merging with the shentu-2.2 node is not possible.