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.
An 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 активовано в Mainnet на блоці 3,543,405, а старіші версії zebrad не можуть відстежувати ланцюг вище цього блоку (примітки до випуску).
необов’язково (створіть screen-сесію для zebrad)
screen -S zebra
zebrad start
примітка: це потрібно буде повністю синхронізувати!
git clone https://github.com/zingolabs/zaino.git
cd zaino
cargo build --release
PATH=$PATH:~/Desktop/zaino/target/release/
необов’язково (створіть screen-сесію для zaino)
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
необов’язково (створіть screen-сесію для zingo-cli)
screen -S zingo
./zingo-cli --server http://127.0.0.1:8137 --data-dir /media/zebra5/zebra/.cache/lightwalletd
примітка: це також потрібно буде повністю синхронізувати, так само, як і lightwalletd. Я рекомендую використовувати зовнішній диск, щоб заощадити час :)
Якщо ви запускаєте все це в screen-сесіях, screen -r покаже вам кожну сесію, щоб ви могли перейти до потрібної за потреби