upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 852ad4d..99bcb6f 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -54,6 +54,7 @@ static void PrintUsage()
54 printf(" /participant=POOL_BTF_ADDRESS\n"); 54 printf(" /participant=POOL_BTF_ADDRESS\n");
55 printf(" /solomine\n"); 55 printf(" /solomine\n");
56 printf(" /genproclimit=N (mining threads; 0 or absent = every core but one)\n"); 56 printf(" /genproclimit=N (mining threads; 0 or absent = every core but one)\n");
57 printf(" /checkblocks=N (blocks re-verified at startup, default 288, 0 = all)\n");
57 printf("\n"); 58 printf("\n");
58 printf("Pool operator announcement:\n"); 59 printf("Pool operator announcement:\n");
59 printf(" /poolname=NAME\n"); 60 printf(" /poolname=NAME\n");
@@ -101,6 +102,10 @@ static void ParseStartupArguments(int argc, char* argv[])
101 if (arg(argc,argv,"/solomine") || arg(argc,argv,"-solomine")) 102 if (arg(argc,argv,"/solomine") || arg(argc,argv,"-solomine"))
102 fSoloMineTest = true; 103 fSoloMineTest = true;
103 104
105 string strCheckBlocks = argval2(argc, argv, "/checkblocks", "-checkblocks");
106 if (!strCheckBlocks.empty())
107 nCheckBlocksOnLoad = atoi(strCheckBlocks.c_str());
108
104 // /genproclimit=N -- threads to hash with. 0 or absent means automatic, 109 // /genproclimit=N -- threads to hash with. 0 or absent means automatic,
105 // which is every core but one. Named after Bitcoin's own option so it reads 110 // which is every core but one. Named after Bitcoin's own option so it reads
106 // familiarly to anyone who has run one of these before. 111 // familiarly to anyone who has run one of these before.