diff options
| author | Bitflash <btf01@proton.me> | 2026-08-01 12:44:04 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-01 12:44:04 -0300 |
| commit | b426948b966405b65f3ea6c1994164b462980694 (patch) | |
| tree | f16357fe57bac2b6a6a8b61f1473e2861203cef1 /src/main_gui.cpp | |
| parent | 24ed292f0524f1bc77c317b60d7ecf265596b3dd (diff) | |
mine: remember whether this node was mining, with the command line winning (#84)
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index c593162..5c87fe0 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -97,6 +97,7 @@ static void ParseStartupArguments(int argc, char* argv[]) | |||
| 97 | // their own mode below, so only the unqualified case is affected. | 97 | // their own mode below, so only the unqualified case is affected. |
| 98 | if (nMineMode == MINE_RELAY) | 98 | if (nMineMode == MINE_RELAY) |
| 99 | nMineMode = MINE_SOLO; | 99 | nMineMode = MINE_SOLO; |
| 100 | fMineModeFromCommandLine = true; | ||
| 100 | } | 101 | } |
| 101 | 102 | ||
| 102 | if (arg(argc,argv,"/solomine") || arg(argc,argv,"-solomine")) | 103 | if (arg(argc,argv,"/solomine") || arg(argc,argv,"-solomine")) |
| @@ -127,12 +128,16 @@ static void ParseStartupArguments(int argc, char* argv[]) | |||
| 127 | } | 128 | } |
| 128 | 129 | ||
| 129 | if (arg(argc,argv,"/operator") || arg(argc,argv,"-operator")) | 130 | if (arg(argc,argv,"/operator") || arg(argc,argv,"-operator")) |
| 131 | { | ||
| 130 | nMineMode = MINE_OPERATOR; | 132 | nMineMode = MINE_OPERATOR; |
| 133 | fMineModeFromCommandLine = true; | ||
| 134 | } | ||
| 131 | 135 | ||
| 132 | if (arg(argc,argv,"/participant") || arg(argc,argv,"-participant")) | 136 | if (arg(argc,argv,"/participant") || arg(argc,argv,"-participant")) |
| 133 | { | 137 | { |
| 134 | nMineMode = MINE_PARTICIPANT; | 138 | nMineMode = MINE_PARTICIPANT; |
| 135 | strParticipantPool = argval2(argc, argv, "/participant", "-participant"); | 139 | strParticipantPool = argval2(argc, argv, "/participant", "-participant"); |
| 140 | fMineModeFromCommandLine = true; | ||
| 136 | } | 141 | } |
| 137 | 142 | ||
| 138 | string poolName = argval2(argc, argv, "/poolname", "-poolname"); | 143 | string poolName = argval2(argc, argv, "/poolname", "-poolname"); |