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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 0a961bf..a01bdee 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -127,6 +127,8 @@ static void PrintUsage()
127 printf(" /stratumbridgeport=N (default 3333; listen on 127.0.0.1)\n"); 127 printf(" /stratumbridgeport=N (default 3333; listen on 127.0.0.1)\n");
128 printf(" /solomine\n"); 128 printf(" /solomine\n");
129 printf(" /genproclimit=N (mining threads; 0 or absent = every core but one)\n"); 129 printf(" /genproclimit=N (mining threads; 0 or absent = every core but one)\n");
130 printf(" /nolargepages (do not ask for 2 MB pages for the RandomX\n");
131 printf(" cache, dataset and scratchpads)\n");
130 printf(" /checkblocks=N (blocks re-verified at startup, default 288, 0 = all)\n"); 132 printf(" /checkblocks=N (blocks re-verified at startup, default 288, 0 = all)\n");
131 printf("\n"); 133 printf("\n");
132 printf("Pool operator announcement:\n"); 134 printf("Pool operator announcement:\n");
@@ -230,6 +232,11 @@ static void ParseStartupArguments(int argc, char* argv[])
230 if (!strCheckBlocks.empty()) 232 if (!strCheckBlocks.empty())
231 nCheckBlocksOnLoad = atoi(strCheckBlocks.c_str()); 233 nCheckBlocksOnLoad = atoi(strCheckBlocks.c_str());
232 234
235 // Must be read before LoadBlockIndex(), which is what first calls
236 // RandomXInit() and fixes how the cache is allocated.
237 if (arg(argc,argv,"/nolargepages") || arg(argc,argv,"-nolargepages"))
238 fRandomXLargePages = false;
239
233 // /genproclimit=N -- threads to hash with. 0 or absent means automatic, 240 // /genproclimit=N -- threads to hash with. 0 or absent means automatic,
234 // which is every core but one. Named after Bitcoin's own option so it reads 241 // which is every core but one. Named after Bitcoin's own option so it reads
235 // familiarly to anyone who has run one of these before. 242 // familiarly to anyone who has run one of these before.