Added -poolshare command line option to adjust the minimum pool share dynamically for rpool (6) and beeeeer (7) without recompiling
This commit is contained in:
parent
5ab03326e7
commit
0f9b8a1a67
4 changed files with 4 additions and 2 deletions
|
@ -578,6 +578,7 @@ int main(int argc, char **argv)
|
|||
ParseParameters(argc, argv);
|
||||
|
||||
socket_to_server = NULL;
|
||||
pool_share_minimum = (unsigned int)GetArg("-poolshare", 7);
|
||||
thread_num_max = GetArg("-genproclimit", 1); // what about boost's hardware_concurrency() ?
|
||||
fee_to_pay = GetArg("-poolfee", 3);
|
||||
miner_id = GetArg("-minerid", 0);
|
||||
|
|
|
@ -14,6 +14,7 @@ std::vector<unsigned int> vPrimes;
|
|||
unsigned int nSieveSize = nDefaultSieveSize;
|
||||
unsigned int nSievePercentage = nDefaultSievePercentage;
|
||||
unsigned int nSieveExtensions = nDefaultSieveExtensions;
|
||||
unsigned int pool_share_minimum = (unsigned int)GetArg("-poolshare", 7);
|
||||
|
||||
static unsigned int int_invert(unsigned int a, unsigned int nPrime);
|
||||
|
||||
|
@ -712,7 +713,7 @@ static bool ProbablePrimeChainTestFast(const mpz_class& mpzPrimeChainOrigin, CPr
|
|||
}
|
||||
}
|
||||
|
||||
return (!poolmining && (nChainLength >= nBits)) || (poolmining && (TargetGetLength(nChainLength) >= POOL_SHARE_MINIMUM));
|
||||
return (!poolmining && (nChainLength >= nBits)) || (poolmining && (TargetGetLength(nChainLength) >= pool_share_minimum));
|
||||
}
|
||||
|
||||
// Sieve for mining
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
/* POOL ADDON */
|
||||
/**************/
|
||||
|
||||
static const unsigned int POOL_SHARE_MINIMUM = 7;
|
||||
extern unsigned int pool_share_minimum;
|
||||
extern size_t thread_num_max;
|
||||
|
||||
class CBlockProvider {
|
||||
|
|
BIN
src/primeminer
Executable file
BIN
src/primeminer
Executable file
Binary file not shown.
Loading…
Reference in a new issue