mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
Update to use trustChange more aggressively.
This commit is contained in:
+1
-1
@@ -766,7 +766,7 @@ function handleMinerData(method, params, ip, portData, sendReply, pushMessage) {
|
|||||||
|
|
||||||
if (global.config.pool.trustedMiners) {
|
if (global.config.pool.trustedMiners) {
|
||||||
if (shareAccepted) {
|
if (shareAccepted) {
|
||||||
miner.trust.probability -= 1;
|
miner.trust.probability -= global.config.pool.trustChange;
|
||||||
if (miner.trust.probability < (global.config.pool.trustMin)) {
|
if (miner.trust.probability < (global.config.pool.trustMin)) {
|
||||||
miner.trust.probability = global.config.pool.trustMin;
|
miner.trust.probability = global.config.pool.trustMin;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user