diff options
Diffstat (limited to 'src/gui.cpp')
| -rw-r--r-- | src/gui.cpp | 7 |
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; |