diff options
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -73,6 +73,10 @@ extern string strPoolName; // operator: announced pool name | |||
| 73 | extern string strPoolDashboardUrl; // operator: optional dashboard URL | 73 | extern string strPoolDashboardUrl; // operator: optional dashboard URL |
| 74 | extern double dPoolFeePercent; // operator: announced fee percent | 74 | extern double dPoolFeePercent; // operator: announced fee percent |
| 75 | extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local test) | 75 | extern bool fSoloMineTest; // /solomine: mine without requiring a peer (local test) |
| 76 | // Threads to hash with; 0 = decide from the hardware. Set by /genproclimit. | ||
| 77 | extern int nMinerThreads; | ||
| 78 | // Resolves the automatic case into a real count. | ||
| 79 | int MinerThreadCount(); | ||
| 76 | extern bool gPoolServerRunning; // GUI/startup state | 80 | extern bool gPoolServerRunning; // GUI/startup state |
| 77 | extern volatile bool gPoolRunning; // runtime pool server loop flag (rpc.cpp) | 81 | extern volatile bool gPoolRunning; // runtime pool server loop flag (rpc.cpp) |
| 78 | 82 | ||
| @@ -117,7 +121,9 @@ void PrintBlockTree(); | |||
| 117 | void AddOrphanTx(const CDataStream& vMsg); | 121 | void AddOrphanTx(const CDataStream& vMsg); |
| 118 | void EraseOrphanTx(uint256 hash); | 122 | void EraseOrphanTx(uint256 hash); |
| 119 | void LimitOrphanTx(unsigned int nMaxOrphans); | 123 | void LimitOrphanTx(unsigned int nMaxOrphans); |
| 120 | bool BitcoinMiner(); | 124 | // nThreadId is 1..N, only for logging: it makes each miner's lines |
| 125 | // distinguishable, which the dedup filter would otherwise collapse into one. | ||
| 126 | bool BitcoinMiner(int nThreadId = 1); | ||
| 121 | void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server | 127 | void ThreadRPCServer(void* parg); // rpc.cpp -- .btf pool server |
| 122 | void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate); | 128 | void GetParticipantMiningStats(uint64& sharesSent, uint64& sharesAccepted, double& hashRate); |
| 123 | void SetParticipantMiningStatus(const std::string& status); | 129 | void SetParticipantMiningStatus(const std::string& status); |