Files
wowlet/src
jwinterm c7fca31653 fix(mining): only offer to mine on a node that is ours
Start Mining was live regardless of which daemon the wallet was talking
to. It is a `start_mining` RPC to the connected node, so on a remote one
it is either refused — the button appearing to do nothing — or, if the
operator left the RPC open, it sets someone else's machine mining to our
address. Neither is a thing a wallet should offer.

The axe now greys out unless `Nodes::connection().isLocal()`, hovering it
explains why, and clicking anyway flashes the same notice rather than
silently doing nothing. `onStartMining` refuses too: the QML disables the
control, but a signal is not a promise.

isLocal() counts localhost, .local, 127/8 and the RFC1918 ranges, so the
embedded node and a daemon on the LAN both qualify.

Claude-Session: https://claude.ai/code/session_01VLQ5DsgKv23osGANoFT3zF
2026-09-04 05:36:45 -04:00
..
2025-03-27 09:17:38 +01:00
2025-02-20 18:52:03 +01:00
2024-09-29 15:27:43 +02:00
2024-11-13 15:13:57 +01:00
2025-02-20 18:52:03 +01:00
2025-02-20 18:52:03 +01:00
2025-03-12 10:04:33 +01:00
2025-03-11 21:45:38 +01:00
2025-02-20 18:52:03 +01:00
2025-02-20 18:52:03 +01:00
2025-02-20 18:52:03 +01:00
2025-02-20 18:52:03 +01:00
2025-03-11 20:45:34 +01:00
2025-02-20 18:52:03 +01:00