docs: two installers write miner config to two different paths (/opt/rustchain-miner vs ~/.rustchain) with no cross-reference

Open
#8,407 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 10 days

@Cid-oe is already working on this.

Since Sep 19, 2026.

  • #1 by @bhanub05 — open
  • #4 by @satoshinakamoto666666 — open
  • #8477 by @Cid-oe — open
  • #8631 by @btctony1 — closed without merging
  • #8651 by @NevioCore — closed without merging
  • #8658 by @flux-axiom — closed without merging
  • #8713 by @dextermos-dev — open
  • #8745 by @dextermos-dev — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
markdown
Domain
documentation

Research direction

Read docs/WALLET_SETUP.md alongside INSTALL.md, setup.sh, and install-miner.sh to confirm which installer writes each config path. Update the wallet setup guide to document both paths and their corresponding installers, then verify the instructions match the installer behavior. A linked pull request (#8477) is already open for this clarification.

Written by the indexing model from the issue text.

Description

Summary

docs/WALLET_SETUP.md tells newcomers to read the miner config at /opt/rustchain-miner/config.json, but that path only exists when RustChain was installed via rustchain.org/install.sh. The repo's own installers (setup.sh, install-miner.sh) and its INSTALL.md write the same config to ~/.rustchain/config.json instead. WALLET_SETUP.md documents only the /opt path with no cross-reference to the repo-installer path, so a newcomer who installs from this repo and then follows the wallet-setup guide runs cat /opt/rustchain-miner/config.json and gets ENOENT (or a permission error), never finding their wallet_id.

Evidence (current main)

  1. docs/WALLET_SETUP.md:58 says "On Linux, the installer saves the miner config here:" and line 61 instructs:
    cat /opt/rustchain-miner/config.json
    followed directly (line 64) by "You should see a wallet_id field." — no other path is mentioned anywhere in the guide.
  2. rustchain.org/install.sh:49 sets INSTALL_DIR="/opt/rustchain-miner" and writes ${INSTALL_DIR}/config.json → config lands at /opt/rustchain-miner/config.json. (Consistent with WALLET_SETUP.md, which also installs via curl -sL https://rustchain.org/install.sh | bash at line 43.)
  3. Repo setup.sh:20 sets INSTALL_DIR="$HOME/.rustchain" and writes $INSTALL_DIR/config.json (lines 271-283) → config lands at ~/.rustchain/config.json.
  4. Repo install-miner.sh:11 also sets INSTALL_DIR="$HOME/.rustchain".
  5. INSTALL.md consistently documents the ~/.rustchain/ layout (lines 14, 81-90).

Verified: curl -sL https://rustchain.org/install.sh (INSTALL_DIR at line 49), grep INSTALL_DIR setup.sh install-miner.sh.

Impact

A newcomer who installs via the repo GitHub flow (setup.sh / install-miner.sh / INSTALL.md) and then follows WALLET_SETUP.md to locate their wallet runs cat /opt/rustchain-miner/config.json against a path that does not exist → No such file or directory (or root-only permission error). They cannot find their wallet_id, which the mining rewards flow requires. Two documented installers disagree on config location with zero cross-reference — real first-run friction.

Suggested fix

In docs/WALLET_SETUP.md, state both paths and which installer produces each, e.g.:

  • rustchain.org/install.sh → /opt/rustchain-miner/config.json (may require sudo cat)
  • repo setup.sh / install-miner.sh → ~/.rustchain/config.json

(Open PR #8406 already proposes this clarification.)

Dominant language
Python
Stars
850
Forks
589
Avg merge
11d 7h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Scottcjn/Rustchain

All issues in Scottcjn/Rustchain

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.