This guide builds a small Zcash stack from source: a Zebra full node, the Zaino indexer on top of it, and the zingo-cli command-line client that connects to Zaino.
Open the Z3 repositoryAn introduction to Zingolib + Zaino
제대로 작동하도록 하려면 3가지를 설치해야 합니다. 화면을 관리하는 데 도움이 되도록 screen이나 비슷한 도구도 사용하는 것을 권장합니다.
sudo apt install screen
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
cargo install --git https://github.com/ZcashFoundation/zebra --tag v7.0.0 zebrad
Zebra 7.0.0 이상을 사용하세요. NU7은 메인넷 블록 3,543,405에서 활성화되었으며, 이전 zebrad 버전은 해당 높이 이후의 체인을 따라갈 수 없습니다(릴리스 노트).
선택 사항 (zebrad용 screen 세션 만들기)
screen -S zebra
zebrad start
참고: 완전히 동기화해야 합니다!
git clone https://github.com/zingolabs/zaino.git
cd zaino
cargo build --release
PATH=$PATH:~/Desktop/zaino/target/release/
선택 사항 (zaino용 screen 세션 만들기)
screen -S zaino
cd ~/zaino/zainod
nano zindexer.toml => Adjust port to 8232 for mainnet
zainod --config zindexer.toml
git clone https://github.com/zingolabs/zingolib.git
cd zingolib
cargo build --release --package zingo-cli
선택 사항 (zingo-cli용 screen 세션 만들기)
screen -S zingo
./zingo-cli --server http://127.0.0.1:8137 --data-dir /media/zebra5/zebra/.cache/lightwalletd
참고: lightwalletd과 마찬가지로 완전히 동기화해야 합니다. 시간을 절약할 수 있도록 외장 드라이브를 사용하는 것을 권장합니다 :)
이 항목들을 screen에서 실행 중이라면, screen -r을 사용해 필요할 때 이동할 screen을 확인할 수 있습니다.