From 06ab5298778142872a74591ba9a17f4cb8ad4c7a Mon Sep 17 00:00:00 2001 From: Marek Date: Thu, 26 Oct 2023 02:06:40 +0200 Subject: [PATCH] docs: Refactor the installation instructions for `s-nomp` (#7835) * Remove references to `getblocktemplate-rpcs` * Refactor the sync description * Refactor the instructions for installing `s-nomp` * Mention Node 10 instead of 8.11 * Refactor the description of Zebra's sync Co-authored-by: teor --------- Co-authored-by: teor --- book/src/user/mining-testnet-s-nomp.md | 54 ++++++++++++++------------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/book/src/user/mining-testnet-s-nomp.md b/book/src/user/mining-testnet-s-nomp.md index 70fbc7a76..fbffdb14d 100644 --- a/book/src/user/mining-testnet-s-nomp.md +++ b/book/src/user/mining-testnet-s-nomp.md @@ -73,11 +73,11 @@ These fixes disable mining pool operator payments and miner payments: they just -2. [Build](https://github.com/ZcashFoundation/zebra#build-instructions) and [Run Zebra](https://zebra.zfnd.org/user/run.html) with the `getblocktemplate-rpcs` feature: +2. [Run Zebra](https://zebra.zfnd.org/user/run.html) with the config you created: ```sh - cargo run --release --features "getblocktemplate-rpcs" --bin zebrad -- -c zebrad.toml + zebrad -c zebrad.toml ``` -3. Wait a few hours for Zebra to sync to the testnet tip (on mainnet this takes 2-3 days) +3. Wait for Zebra to sync to the testnet tip. This takes 8-12 hours on testnet (or 2-3 days on mainnet) as of October 2023. ## Install `s-nomp` @@ -137,43 +137,49 @@ These fixes disable mining pool operator payments and miner payments: they just
Arch-specific instructions -#### Install dependencies +#### Install `s-nomp` -1. Install [`redis`](https://redis.io/docs/getting-started/) and run it on the default port: +1. Install Redis, and development libraries required by S-nomp ```sh - sudo pacman -S redis + sudo pacman -S redis boost libsodium + ``` + +2. Install `nvm`, Python 3.10 and `virtualenv` + + ```sh + paru -S python310 nvm + sudo pacman -S python-virtualenv + ``` + +3. Start Redis + ```sh sudo systemctl start redis ``` -2. Install and activate [`nvm`](https://github.com/nvm-sh/nvm#installing-and-updating): +4. Clone the repository + + ```sh + git clone https://github.com/ZcashFoundation/s-nomp && cd s-nomp + ``` + +5. Use Node 10: ```sh - sudo pacman -S nvm unset npm_config_prefix source /usr/share/nvm/init-nvm.sh + nvm install 10 + nvm use 10 ``` -3. Install `boost` and `libsodium` development libraries: +6. Use Python 3.10 ```sh - sudo pacman -S boost libsodium + virtualenv -p 3.10 s-nomp + source s-nomp/bin/activate ``` -#### Install `s-nomp` - -1. `git clone https://github.com/ZcashFoundation/s-nomp && cd s-nomp` - -2. Use the Zebra configs: `git checkout zebra-mining` - -3. Use node 8.11.0: - - ```sh - nvm install 8.11.0 - nvm use 8.11.0 - ``` - -4. Update dependencies and install: +7. Update dependencies and install: ```sh npm update