Viction
  • Getting Started
  • General
    • Overview
    • Viction Blockchain
      • PoSV Consensus
      • Comparison
    • Staking
      • Staking Requirements
      • Staking Rewards
      • How to stake on Viction Wallet
    • Network Information
      • Viction Mainnet
      • Viction Testnet
    • Viction RPC API
  • Smart Contract Development
    • Solidity
      • A Simple Smart Contract
      • Solidity by Example
    • Standards & Specification
      • VRC25 Specification
      • VRC725 Specification
    • IDEs and Tools
      • Remix
      • Ethers.js
      • web3.js
      • thirdweb CLI
    • Deployment & Verification
      • Hardhat
      • Foundry
  • DApp Development
    • Integration
      • Exchange/Wallet integration
      • VRC25 Exchange/Wallet integration
      • Viction Staking Governance
      • VIC ZeroGas
      • VRRF
    • Data and analytics
    • Embedded Wallet (MPC)
    • Walkthrough: Build a Dapp on Viction
      • Setup Environment
      • Write the Smart Contract
      • Interacting with the Dapp in a browser
  • Masternode
    • Requirements
    • Run a Full Node
      • Binary
      • Create a Viction Masternode
      • Tmn
      • Docker
    • Apply Your Node
    • Slashing Mechanism
    • Chain Data Snapshots
    • Troubleshooting
  • Viction Wallet
    • User Guide
      • Authentication
      • How to create a new wallet
      • How to restore a wallet?
      • Wallet settings
      • Send & Receive Tokens
      • Add custom token
      • Manage Tokens
      • Send NFT
      • General settings
    • Developer Guide
    • Privacy Policy
    • Term and Services
  • Viction Bridge
    • Spacegate
    • Arken Bridge
    • Hyperlane
  • Viction Data Availability
    • Viction DA RPC API
    • DA Integration Use cases
      • Simple Guide for Integrating OP Stack Rollup with Viction DA Layer
  • How to
    • How to Connect to Viction Blockchain
      • Coin98 Super Wallet
      • Metamask
      • Ledger
    • How to troubleshoot when the node is up but couldn't begin to sync block
    • How to Vote for Viction Saigon Network Upgrade Proposal
    • How to issue a token via VICIssuer
    • How to verify if a contract has been issued via VICIssuer
    • How to deploy the VRC725 contract
    • How to apply ZeroGas for VRC725 contract
    • How to Migrate Dapps from Ethereum
    • How to register Token or NFT logo on Vicscan
    • How to verify a contract on Vicscan
    • How to confirm a project on Vicscan
    • How to check if a token is gas sponsored on Viction
    • How to verify gas sponsored transactions
    • How to create Telegram Mini Apps
    • How to use VictionSafe (Multisig)
  • FAQ
    • APIs
    • General
      • Viction
      • Ecosystem
      • VIC - Economics
      • Contact & Support
    • Masternodes and Voting
      • Masternodes
      • Voter
    • Products
      • VicScan (Explorer)
      • VicMaster
      • VicStats
      • VicIssuer
        • How to Verify & Publish Contract Source Code on VicScan
      • Viction Wallet
      • Viction Data Availability Network
  • Legal
    • Terms of Use
    • Privacy Policy
  • Whitepaper and Research
  • Archive
    • TOMOE
    • How to Deploy a VRC25 Token on Viction
    • How to deploy an ICO smart contract on Viction
    • How to deploy an NFT token
    • An Example of Building a Dapp on Viction
    • Migrate Ethereum Dapp to Viction
    • TomoMasterDAO
      • Introduction
      • Governance model
        • On-Chain vs Off-Chain Voting
        • Board
        • Proposals
        • Voting and Outcome
      • Tokenomics
      • How to utilize and trade tDAO
      • Proposal guidelines for TomoMasterDAO
    • Old Viction Testnet
    • Deploy on Viction
      • CLI Commands
      • Viction Private Testnet Setup
Powered by GitBook
On this page
  • Overview
  • Full Node
  • Archive Node
  • Notes
  • Example
  • For Full Node
  • For Archive Node
  1. Masternode

Chain Data Snapshots

PreviousSlashing MechanismNextTroubleshooting

Last updated 8 months ago

Overview

For a node to join the network and work with other nodes, it must sync data with other nodes first. Overtime, the data to be synchronized will increased and the process will take several days to weeks, even months.

The snapshot consists of 2 parts that must be downloaded and extracted for a node to synchronize properly.

Full Node

To help node operators to catchup with network quickly, we create a snapshot for Viction mainnet every Friday

  • TomoX:

  • Chain Data:

We also have checksum information to verify downloaded files are correct.

  • TomoX:

  • Chain Data:

Archive Node

To help node operators to catchup with network quickly, we create a archive snapshot for Viction mainnet quarter(3 months) for cost saving. Latest data is snapshot on July 2nd, 2024. The next blockchai data will be snapshoted early October, 2024.

  • TomoX: https://snapshot.viction.xyz/archive-node/TOMOX_DATA.tar.zst

  • Chain Data: https://snapshot.viction.xyz/archive-node/CHAIN_DATA.tar.zst

We also have checksum information to verify downloaded files are correct.

  • TomoX: https://snapshot.viction.xyz/archive-node/TOMOX_DATA.tar.zst.sha1

  • Chain Data: https://snapshot.viction.xyz/archive-node/CHAIN_DATA.tar.zst.sha1

Notes

  • At the time of this writing, the size of the snapshot files are:

    • Nearly 800GB for the Full Node

    • Nearly 3.5TB for the Archive Node

  • Please make sure that you have enough free space to store the files and the extracted contents.

Example

This is an example for using the snapshot with Full Node, if you are about to use for Archive Node, then please update the link to the archive data URL above.

For Full Node

This example demonstrates how to use the snapshot files with the assumption that the node has been stopped and node data is stored at the following path: /var/lib/docker/volumes/viction_mainnet/_data/data

# set dir
VIC_DATA_DIR="/var/lib/docker/volumes/viction_mainnet/_data/data"
TMP_DIR="/tmp"

# download the files to /tmp folder
wget -c https://snapshot.viction.xyz/TOMOX_DATA.tar.zst -O $TMP_DIR/TOMOX_DATA.tar.zst
wget -c https://snapshot.viction.xyz/CHAIN_DATA.tar.zst -O $TMP_DIR/CHAIN_DATA.tar.zst

# remove existing data
rm -r $VIC_DATA_DIR/tomox
rm -r $VIC_DATA_DIR/tomo

# create new dir for extraction
mkdir -p $VIC_DATA_DIR/tomox
mkdir -p $VIC_DATA_DIR/tomo/chaindata

# extract the file
tar zstd xvf $TMP_DIR/TOMOX_DATA.tar.zst -C $VIC_DATA_DIR/tomox
tar zstd xvf $TMP_DIR/CHAIN_DATA.tar.zst -C $VIC_DATA_DIR/tomo/chaindata
  • The file CHAIN_DATA.tar.zst is huge at the time of writing and will take a long time to download and extract. You can use the following command to perform those operations in background:

# download the file
wget -bqc https://snapshot.viction.xyz/CHAIN_DATA.tar.zst -O $TMP_DIR/CHAIN_DATA.tar.zst
# extract the file
nohup tar zstd xvf $TMP_DIR/CHAIN_DATA.tar.zst -C $VIC_DATA_DIR/tomo/chaindata &

For Archive Node

This example demonstrates how to use the snapshot files with the assumption that the node has been stopped and node data is stored at the following path: /var/lib/docker/volumes/viction_mainnet/_data/data

# set dir
VIC_DATA_DIR="/var/lib/docker/volumes/viction_mainnet/_data/data"
TMP_DIR="/tmp"

# download the files to /tmp folder
wget -c https://snapshot.viction.xyz/archive-node/TOMOX_DATA.tar.zst -O $TMP_DIR/TOMOX_DATA.tar
wget -c https://snapshot.viction.xyz/archive-node/CHAIN_DATA.tar.zst -O $TMP_DIR/CHAIN_DATA.tar

# remove existing data
rm -r $VIC_DATA_DIR/tomox
rm -r $VIC_DATA_DIR/tomo

# create new dir for extraction
mkdir -p $VIC_DATA_DIR/tomox
mkdir -p $VIC_DATA_DIR/tomo/chaindata

# extract the file
tar zstd xvf $TMP_DIR/TOMOX_DATA.tar -C $VIC_DATA_DIR/tomox
tar zstd xvf $TMP_DIR/CHAIN_DATA.tar -C $VIC_DATA_DIR/tomo/chaindata
  • The file CHAIN_DATA.tar.zst is huge at the time of writing and will take a long time to download and extract. You can use the following command to perform those operations in background:

# download the file
wget -bqc https://snapshot.viction.xyz/archive-node/CHAIN_DATA.tar.zst -O $TMP_DIR/CHAIN_DATA.tar
# extract the file
nohup tar zstd xvf $TMP_DIR/CHAIN_DATA.tar -C $VIC_DATA_DIR/tomo/chaindata &
https://snapshot.viction.xyz/TOMOX_DATA.tar.zst
https://snapshot.viction.xyz/CHAIN_DATA.tar.zst
https://snapshot.viction.xyz/TOMOX_DATA.tar.zst.sha1
https://snapshot.viction.xyz/CHAIN_DATA.tar.zst.sha1