Zenith GUI 全节点钱包安装
视频教程
安装 Haskell
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
安装 Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
安装 Zebra
sudo apt install libclang-dev
cargo install --git https://github.com/ZcashFoundation/zebra --tag v2.1.0 zebrad
zebrad generate -o ~/.config/zebrad.toml
nano ~/.config/zebrad.toml
在 localhost 上监听 RPC 查询
listen_addr = "127.0.0.1:8232"
自动使用多个 CPU 线程
parallel_cpu_threads = 0
enable_cookie_auth = false
安装 Zenith
下载 tar.gz 并解压到你的主目录中
wget https://code.vergara.tech/Vergara_Tech/zenith/archive/0.7.2.0-beta.tar.gz
tar -C ~ -xvzf 0.7.2.0-beta.tar.gz
cd zenith
rmdir zcash-haskell
git clone https://code.vergara.tech/Vergara_Tech/zcash-haskell.git
安装依赖
sudo apt install libssl-dev libgmp-dev libsecp256k1-dev libtinfo-dev libsdl2-dev libfreetype-dev libglew-dev gdk-pixbuf-tests raspi-config
cargo install cargo-c
stack install c2hs
mousepad ~/.bashrc
export PATH="/home/zebra5/.local/bin:$PATH"
source ~/.bashrc
为 aarch64 调整源码
nano configure
将两行中的 triple 都改为:"aarch64-unknown-linux-gnu"。
nano Setup.hs
在 zcash-haskell 文件夹和 zenith 文件夹中都修改 Setup.hs
编译
-
./configure
-
cabal build
-
mkdir ~/Zenith
-
cd ~/Zenith
-
mkdir assets
-
cp ~/zenith/dist-newstyle/build/aarch64-linux/ghc-9.6.5/zenith-0.7.2.0/build/zenith/zenith ~/Zenith
-
cp ~/zenith/zenith.cfg ~/Zenith
-
cp -r ~/zenith/assets ~/Zenith/assets
调整 zenith.cfg
nodeUser = yourusername
nodePwd = superSecret
nodePort = 8234
dbFileName = zenith.db
zebraHost = 127.0.0.1
zebraPort = 8232
cd ~/Zenith
Raspi-config
下载最新版 gldriver-test
sudo dpkg - gldriver-test_0.15_all.deb
sudo raspi-config
进入 advance 并选择 opengl => GL (Full KMS)
重启
运行 zenith
./zenith gui
or
./zenith tui
or
./zenithserver
RPC
操作说明