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:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-07 11:34:17 -0300
committerBitflash <admin@bitflash.network>2026-08-07 15:06:21 -0300
commit8bf5b8cac5d91165b11d4ce65333b68edcc723b0 (patch)
treede92ea6afbc7762ec3e8f9654544ca56d9448c06 /src/main.h
parent5c2e66b70ab3c15603a6e2d7a4ea9e02f3cd0604 (diff)
pool: add local Stratum bridge
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 3866855..2786a4a 100644
--- a/src/main.h
+++ b/src/main.h
@@ -88,6 +88,8 @@ extern string strPoolName; // operator: announced pool name
88extern string strPoolDashboardUrl; // operator: optional dashboard URL 88extern string strPoolDashboardUrl; // operator: optional dashboard URL
89extern string strPoolStatusFile; // operator: optional JSON status output path 89extern string strPoolStatusFile; // operator: optional JSON status output path
90extern double dPoolFeePercent; // operator: announced fee percent 90extern double dPoolFeePercent; // operator: announced fee percent
91extern bool fStratumBridge; // participant helper: local Stratum bridge
92extern int nStratumBridgePort; // local bridge listen port, default 3333
91extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local test) 93extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local test)
92// Threads to hash with; 0 = decide from the hardware. Set by /genproclimit. 94// Threads to hash with; 0 = decide from the hardware. Set by /genproclimit.
93extern int nMinerThreads; 95extern int nMinerThreads;
@@ -272,6 +274,7 @@ void LimitOrphanBlocks(unsigned int nMaxOrphans);
272// distinguishable, which the dedup filter would otherwise collapse into one. 274// distinguishable, which the dedup filter would otherwise collapse into one.
273bool BitcoinMiner(int nThreadId = 1); 275bool BitcoinMiner(int nThreadId = 1);
274void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server 276void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server
277void ThreadStratumBridge(void* parg); // main.cpp -- local Stratum -> .btf bridge
275void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate); 278void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate);
276void SetParticipantMiningStatus(const std::string& status); 279void SetParticipantMiningStatus(const std::string& status);
277std::string GetParticipantMiningStatus(); 280std::string GetParticipantMiningStatus();