Skip to content

Dashboard controls: mining cores and pause or resume - #4

Merged
ghostcoin-org merged 1 commit into
mainfrom
change/91a903914854
Oct 28, 2026
Merged

ghostcoin-org merged 1 commit into
mainfrom
change/91a903914854

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.

The Mining panel gets a cores slider (1 to the logical core count) and a pause or resume button. Applying calls miner_start(n) and saves n to <node-dir>/miner-threads, replaced atomically with its old permissions; while paused the count is only saved. Pause calls miner_stop and writes <node-dir>/mining-paused; resume removes it and starts mining on the saved count. After each change the node is read back with eth_mining and the outcome or error is shown in plain words. The new POST endpoints sit behind the dashboard key and the Origin check, and refuse a core count that is not a whole number in range. The page notes that a node restart resumes mining until the installer reads mining-paused.
@ghostcoin-org
ghostcoin-org merged commit 6f40584 into main Oct 28, 2026
7 checks passed
@ghostcoin-org
ghostcoin-org deleted the change/91a903914854 branch October 28, 2026 22:37
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