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 9f0fec0..a561174 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");
@@ -231,6 +233,11 @@ static void ParseStartupArguments(int argc, char* argv[])
231 if (!strCheckBlocks.empty()) 233 if (!strCheckBlocks.empty())
232 nCheckBlocksOnLoad = atoi(strCheckBlocks.c_str()); 234 nCheckBlocksOnLoad = atoi(strCheckBlocks.c_str());
233 235
236 // Must be read before LoadBlockIndex(), which is what first calls
237 // RandomXInit() and fixes how the cache is allocated.
238 if (arg(argc,argv,"/nolargepages") || arg(argc,argv,"-nolargepages"))
239 fRandomXLargePages = false;
240
234 // /genproclimit=N -- threads to hash with. 0 or absent means automatic, 241 // /genproclimit=N -- threads to hash with. 0 or absent means automatic,
235 // which is every core but one. Named after Bitcoin's own option so it reads 242 // which is every core but one. Named after Bitcoin's own option so it reads
236 // familiarly to anyone who has run one of these before. 243 // familiarly to anyone who has run one of these before.