Fixes to send more diff information down the wire.

This commit is contained in:
Alexander Blair
2017-07-03 07:47:37 -07:00
parent 778dd7d1b8
commit f77ceae79b
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -271,12 +271,12 @@ function calculatePPLNSPayments(blockHeader) {
paymentData[userIdentifier].amount = paymentData[userIdentifier].amount + amountToPay;
let donations = 0;
if(global.config.payout.devDonation > 0){
let devDonation = (feesToPay * (global.config.payout.devDonation / 100));
let devDonation = Math.floor(feesToPay * (global.config.payout.devDonation / 100));
donations += devDonation;
paymentData[global.coinFuncs.coinDevAddress].amount = paymentData[global.coinFuncs.coinDevAddress].amount + devDonation ;
}
if(global.config.payout.poolDevDonation > 0){
let poolDevDonation = (feesToPay * (global.config.payout.poolDevDonation / 100));
let poolDevDonation = Math.floor(feesToPay * (global.config.payout.poolDevDonation / 100));
donations += poolDevDonation;
paymentData[global.coinFuncs.poolDevAddress].amount = paymentData[global.coinFuncs.poolDevAddress].amount + poolDevDonation;
}
+2
View File
@@ -509,6 +509,8 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
reserved_offset: activeBlockTemplate.reserveOffset,
client_nonce_offset: activeBlockTemplate.clientNonceLocation,
client_pool_offset: activeBlockTemplate.clientPoolLocation,
target_diff: this.difficulty,
target_diff_hex: this.diffHex,
job_id: newJob.id,
id: this.id
};