diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-07 11:34:17 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-07 15:06:21 -0300 |
| commit | 8bf5b8cac5d91165b11d4ce65333b68edcc723b0 (patch) | |
| tree | de92ea6afbc7762ec3e8f9654544ca56d9448c06 /src/main.h | |
| parent | 5c2e66b70ab3c15603a6e2d7a4ea9e02f3cd0604 (diff) | |
pool: add local Stratum bridge
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -88,6 +88,8 @@ extern string strPoolName; // operator: announced pool name | |||
| 88 | extern string strPoolDashboardUrl; // operator: optional dashboard URL | 88 | extern string strPoolDashboardUrl; // operator: optional dashboard URL |
| 89 | extern string strPoolStatusFile; // operator: optional JSON status output path | 89 | extern string strPoolStatusFile; // operator: optional JSON status output path |
| 90 | extern double dPoolFeePercent; // operator: announced fee percent | 90 | extern double dPoolFeePercent; // operator: announced fee percent |
| 91 | extern bool fStratumBridge; // participant helper: local Stratum bridge | ||
| 92 | extern int nStratumBridgePort; // local bridge listen port, default 3333 | ||
| 91 | extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local test) | 93 | extern 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. |
| 93 | extern int nMinerThreads; | 95 | extern 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. |
| 273 | bool BitcoinMiner(int nThreadId = 1); | 275 | bool BitcoinMiner(int nThreadId = 1); |
| 274 | void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server | 276 | void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server |
| 277 | void ThreadStratumBridge(void* parg); // main.cpp -- local Stratum -> .btf bridge | ||
| 275 | void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate); | 278 | void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate); |
| 276 | void SetParticipantMiningStatus(const std::string& status); | 279 | void SetParticipantMiningStatus(const std::string& status); |
| 277 | std::string GetParticipantMiningStatus(); | 280 | std::string GetParticipantMiningStatus(); |