diff options
| author | Eric <tilcboy44@gmail.com> | 2026-07-30 07:37:43 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-30 10:37:43 -0300 |
| commit | f30f45849ecd45be6a073b6b1d308e1c12b8b52b (patch) | |
| tree | 82b45db2a82d826318093bf9ed1427a57a9d2d78 /src/util.cpp | |
| parent | 6ecd5f75650bc86e3b1ccbdf2999ec31c43f551b (diff) | |
main: make /gen actually mine (#42)
nMineMode defaults to MINE_RELAY (0) and ParseStartupArguments() never changed
it, so a node started with /gen would spawn ThreadBitcoinMiner, enter
BitcoinMiner(), hit
if (nMineMode == MINE_RELAY)
return true;
and return before doing any work. The node then ran indefinitely looking
completely healthy -- it synced, it held peers, it reported no errors -- while
earning nothing. Nothing in the log said otherwise; the only hint was
`nMineMode = 0` in a startup line that reads like a status echo.
This affects every headless miner, because the GUI is the only other way to
select a mining mode.
/gen now implies MINE_SOLO unless /operator or /participant asked for something
else. Verify with `nMineMode = 1` at startup.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/util.cpp')
0 files changed, 0 insertions, 0 deletions