Skip to content

ghost-node installer: GHOST_MINE_TO mines straight to the tester's own wallet ad - #121

Merged
ghostcoin-org merged 1 commit into
mainfrom
change/66d8a0488d02
Oct 28, 2026
Merged

ghostcoin-org merged 1 commit into
mainfrom
change/66d8a0488d02

Conversation

@ghostcoin-org

Copy link
Copy Markdown
Contributor

Code and security review ran on this branch: 0 finding(s) in total, none critical or high remaining.

install.sh, install.ps1 and install.cmd read GHOST_MINE_TO. It must be 0x followed by exactly 40 hex characters; anything else is refused before anything is downloaded or installed. With it, the config's Etherbase is that address and no mining key or password file is made. A re-run, or an install.sh --update, with GHOST_MINE_TO set rewrites only the Etherbase line and restarts the node; without it the config is kept as before. Unset, the installers make a new key exactly as before. Every install now ends by printing 'mining to: <address>', and each script's header gives the one-line examples for sh and PowerShell.

The Windows scripts write or rewrite the config before ghost-setup runs, since ghost-setup keeps an existing config and so makes no key. ghost-setup's own --update, the daily one at login, does not read the variable: a Windows tester changes the address by running the install line again.

Tests cover a fresh install mining to the wallet with no keystore account, re-runs and updates with a new, the same or no address, malformed addresses refused with nothing installed, the unset case, and the Windows scripts' check, config template and order of steps.
@ghostcoin-org
ghostcoin-org enabled auto-merge (rebase) October 28, 2026 15:34
@ghostcoin-org
ghostcoin-org merged commit b89f4bd into main Oct 28, 2026
9 checks passed
@ghostcoin-org
ghostcoin-org deleted the change/66d8a0488d02 branch October 28, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant