Fixes to send more diff information down the wire.

master
Alexander Blair 7 years ago
parent 778dd7d1b8
commit f77ceae79b

@ -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;
}

@ -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
};

Loading…
Cancel
Save