upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index b389f1d..8bb536b 100644
--- a/src/main.h
+++ b/src/main.h
@@ -41,6 +41,12 @@ static const int64 MAX_MONEY = 21000000 * COIN;
41inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } 41inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
42static const int64 CENT = 1000000; 42static const int64 CENT = 1000000;
43static const int COINBASE_MATURITY = 100; 43static const int COINBASE_MATURITY = 100;
44// Depth at which a coinbase we mined is actually usable. CMerkleTx::GetCredit
45// values a coinbase at zero until GetBlocksToMaturity() reaches 0, which is
46// this depth -- not COINBASE_MATURITY. Anything that plans to *spend* mined
47// coin must gate on this, or it will try to pay out of a balance the wallet
48// still reports as zero. Both rules live here so they cannot drift apart.
49static const int COINBASE_SPENDABLE_DEPTH = COINBASE_MATURITY + 20;
44 50
45// Bitflash difficulty floor. The PoW is RandomX (memory-hard), ~1000x slower 51// Bitflash difficulty floor. The PoW is RandomX (memory-hard), ~1000x slower
46// per hash than SHA-256d, so the target is much easier than Bitcoin's to let a 52// per hash than SHA-256d, so the target is much easier than Bitcoin's to let a
@@ -84,6 +90,11 @@ extern int nMineMode;
84// something a previous session wrote. 90// something a previous session wrote.
85extern bool fMineModeFromCommandLine; 91extern bool fMineModeFromCommandLine;
86extern string strParticipantPool; // participant: pool .btf address 92extern string strParticipantPool; // participant: pool .btf address
93extern string strPayoutAddress; // participant: /payoutaddr override (mine without a wallet)
94extern string strPayoutFile; // participant: /payoutfile address list, rotated per reconnect
95extern bool fPoolNoAnnounce; // /noannounce: suppress pool announcements
96extern bool fPoolMineBlind; // /poolmineblind: mine on even when deaf to every peer
97extern int nHashThreads; // participant: /hashthreads override (0 = cores-1)
87extern string strPoolName; // operator: announced pool name 98extern string strPoolName; // operator: announced pool name
88extern string strPoolDashboardUrl; // operator: optional dashboard URL 99extern string strPoolDashboardUrl; // operator: optional dashboard URL
89extern string strPoolStatusFile; // operator: optional JSON status output path 100extern string strPoolStatusFile; // operator: optional JSON status output path
@@ -96,6 +107,9 @@ extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local te
96extern int nMinerThreads; 107extern int nMinerThreads;
97// Resolves the automatic case into a real count. 108// Resolves the automatic case into a real count.
98int MinerThreadCount(); 109int MinerThreadCount();
110// Hash threads one participant session runs; resolves /hashthreads. Not the
111// same number as MinerThreadCount(), and only ONE session ever runs.
112int ParticipantHashThreadCount();
99extern bool gPoolServerRunning; // GUI/startup state 113extern bool gPoolServerRunning; // GUI/startup state
100extern volatile bool gPoolRunning; // runtime pool server loop flag (rpc.cpp) 114extern volatile bool gPoolRunning; // runtime pool server loop flag (rpc.cpp)
101 115