upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/gui.cpp
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-08-01 12:44:04 -0300
committerGitHub <noreply@github.com>2026-08-01 12:44:04 -0300
commitb426948b966405b65f3ea6c1994164b462980694 (patch)
treef16357fe57bac2b6a6a8b61f1473e2861203cef1 /src/gui.cpp
parent24ed292f0524f1bc77c317b60d7ecf265596b3dd (diff)
mine: remember whether this node was mining, with the command line winning (#84)
Diffstat (limited to 'src/gui.cpp')
-rw-r--r--src/gui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui.cpp b/src/gui.cpp
index db6b69e..e2bb5cf 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -795,6 +795,13 @@ static void DrawOptionsDialog()
795 if (!vfThreadRunning[3]) StartMinerThreads(); 795 if (!vfThreadRunning[3]) StartMinerThreads();
796 } 796 }
797 797
798 // Remember the choice. Without this the node came back from every
799 // restart as a plain relay, and a machine that had been mining for
800 // days looked identical to one that had never been asked to.
801 CWalletDB().WriteSetting("nMineMode", nMineMode);
802 CWalletDB().WriteSetting("fGenerateBitcoins", fGenerateBitcoins);
803 CWalletDB().WriteSetting("strParticipantPool", strParticipantPool);
804
798 if (nMineMode == MINE_OPERATOR) { 805 if (nMineMode == MINE_OPERATOR) {
799 if (!gPoolServerRunning) { 806 if (!gPoolServerRunning) {
800 gPoolServerRunning = true; 807 gPoolServerRunning = true;