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.
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でMainnet上で有効化されており、それより古い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が一覧表示されます