테스트넷 체인 동기화 이슈
1. 스냅샷 데이터를 통한 동기화 (권장)
바이프로스트 네트워크는 체인 데이터 스냅샷을 제공합니다. 스냅샷은 정기적으로 업데이트됩니다. 이를 통해 노드 운영자는 데이터 동기화에 소요되는 시간을 줄이고 네트워크 부하를 경감할 수 있습니다.
링크를 따라 스냅샷 다운로드 및 내보내기 프로세스를 완료합니다.
완료되면 운영 매뉴얼의 해당 프로세스로 돌아가 프로세스를 완료합니다.
2. 제네시스 블록부터의 동기화
이 방법은 스냅샷 다운로드를 요구하지 않습니다. 이 섹션에서는 아카이브와 풀노드 모두 적용되는 해결방안입니다.
1. Block 0 to 336115
처음 동기화에서, node 1.0.2
버전을 사용해 336,115 블록까지 동기화합니다.
wget "https://github.com/bifrost-platform/bifrost-node/releases/download/v1.0.2/bifrost-node"
wget "https://github.com/bifrost-platform/bifrost-node/releases/download/v1.0.2/bifrost-testnet.json"
chmod +x bifrost-node
mv bifrost-node bifrost-testnet.json <YOUR-BASE-PATH-DIRECTORY>
cd <YOUR-BASE-PATH-DIRECTORY>
# For archive-mode
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --pruning archive --runtime-cache-size 128
# For full-mode (remove --pruning option)
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --runtime-cache-size 128
노드 실행을 시작하면 아래와 같이 제네시스 블록부터 체인 데이터를 동기화하기 시작합니다. (경우에 따라 에러 로그가 표시될 수 있지만, 현재로서는 무시해도 무관합니다.)

2. 블록 336,115 이후
336,115 블록까지 동기화 되었으면 최신버전의 노드를 사용해서 나머지 블록을 동기화합니다.
# After terminate existing bifrost-node
cd <YOUR-BASE-PATH-DIRECTORY>
rm bifrost-node
wget https://github.com/bifrost-platform/bifrost-node/releases/latest/download/bifrost-node
wget https://github.com/bifrost-platform/bifrost-node/releases/latest/download/bifrost-testnet.json
chmod +x bifrost-node
# For archive-mode (the option name for --pruning has changed to --state-pruning)
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --state-pruning archive --runtime-cache-size 128
# For full-mode (remove --state-pruning option)
./bifrost-node --base-path ./ --chain ./bifrost-testnet.json --port 30333 --runtime-cache-size 128
노드를 재시작 한 후, 몇가지 에러가 생길 수 있으나 무시해도 무관합니다.
3. 동기화 완료

동기화가 완료되면 "Syncing" 이라는 메시지가 더이상 로그에 출력되지 않습니다. 이제 운영 매뉴얼로 돌아가 나머지 프로세스를 완료합니다.
Last updated