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 के पुराने संस्करण उस ऊँचाई के बाद चेन का अनुसरण नहीं कर सकते (रिलीज़ नोट्स)।
वैकल्पिक (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 की सूची दिखाएगा, ताकि आप आवश्यकतानुसार उनमें जा सकें।