Skip to content

Commit

Permalink
Minimum Share Prime Count of 4 to make Testnet Pooled Mining more pra…
Browse files Browse the repository at this point in the history
…ctical

Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
  • Loading branch information
Pttn committed Sep 20, 2021
1 parent 1a26d30 commit 381f53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StratumClient.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (c) 2018-2021 Pttn (https://github.com/Pttn/rieMiner)
// (c) 2018-2021 Pttn (https://riecoin.dev/en/rieMiner)

#include "main.hpp"
#include "StratumClient.hpp"
Expand Down Expand Up @@ -102,7 +102,7 @@ bool StratumClient::_fetchWork() {
std::cout << __func__ << ": empty or invalid accepted constellation patterns list!" << std::endl;
goto failure;
}
_sd.sharePrimeCountMin = std::max(static_cast<int>(_info.acceptedPatterns[0].size()) - 2, 3);
_sd.sharePrimeCountMin = std::max(static_cast<int>(_info.acceptedPatterns[0].size()) - 2, 4);
_sd.coinbase1 = hexStrToV8(coinbase1);
_sd.coinbase2 = hexStrToV8(coinbase2);
_sd.jobId = jobId;
Expand Down

0 comments on commit 381f53f

Please sign in to comment.