Files
wowlet/src/widgets
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-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-02-20 18:52:03 +01:00
2025-02-20 18:52:03 +01:00
2023-12-04 20:47:19 +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
2021-05-25 01:13:19 +02:00
2025-02-20 18:52:03 +01:00
2023-12-04 16:06:33 +01:00
2025-02-20 18:52:03 +01:00
2023-12-30 14:17:11 +01:00