feat(mining): make the stuck-toggle caption state the ~30s self-timeout (F100)
UX audit (deferred item): completing F100 the safe way. A true force-stop/abort is not buildable without live hung-state testing — App::stopMining()/stopPoolMining() no-op while a toggle is in flight (mining_toggle_in_progress_.exchange(true) early-returns), and resetting that atomic mid-operation would race the worker's completion callback (overlapping setgenerate, stale state). So instead of a button that would silently do nothing or risk corruption, the "Taking longer than expected…" caption now tells the user it will time out on its own within ~30s (the curl/RPC bound), which is the actual recovery. A generation-token + RPC-cancel abort is left for a later change that can be tested against a hung daemon. Build + tests green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -2490,7 +2490,7 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["mining_est_weeks"] = "~%.1f weeks";
|
||||
strings_["mining_ram_estimate"] = " RAM ~%.1f GB";
|
||||
strings_["mining_cap_syncing"] = "Syncing \xE2\x80\x94 mining starts once the chain reaches the tip";
|
||||
strings_["mining_toggle_slow"] = "Taking longer than expected\xE2\x80\xA6";
|
||||
strings_["mining_toggle_slow"] = "Taking longer than expected\xE2\x80\xA6 it will time out on its own within about 30 seconds.";
|
||||
strings_["mining_chart_start"] = "Start";
|
||||
strings_["mining_click"] = "Click";
|
||||
strings_["mining_click_copy_address"] = "Click to copy address";
|
||||
|
||||
Reference in New Issue
Block a user