This chapter describes how to verify the merkle tree proofs data from the fullnode to ensure the merkle proofs is matching the state of the fullnode.
git clone https://github.com/bnb-chain/node-dump.git
cd node-dump
make buildGet the link from the data provider and download the data to the local machine. refer to readme.md for more details.
- NODE_DATA_PATH: the path of the BNB Beacon Chain Node data
- ARCHIVED_PROOF_PATH: the path of the Merkle Proofs of User Accounts data
## BNB Beacon Chain Node
### 1. download from R2
mkdir -p ${NODE_DATA_PATH}
wget -qO- $NODE_DATA_LINK | tar -zxvf - -C ${NODE_DATA_PATH}
### 2. download from greenfield
wget $NODE_SEGMENT_LINKS -O ./bc-testnet-snapshot-segment-links.txt
wget -i ./bc-testnet-snapshot-segment-links.txt -O - | cat > bc-testnet-snapshot.tar.gz && tar -xzvf - -C ${NODE_DATA_PATH}
## Merkle Proofs of User Accounts
mkdir -p ${ARCHIVED_PROOF_PATH}
wget -qO- $MERKLE_PROOF_DATA_LINK | tar -zxvf - -C ${ARCHIVED_PROOF_PATH}verify the merkle proofs data from the fullnode to ensure the merkle proofs is matching the state of the fullnode.
./build/dump verify ${ARCHIVED_PROOF_PATH}/dump --home $NODE_DATA_PATH/dataseed --tracelog