mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fixes to send more diff information down the wire.
This commit is contained in:
+2
-2
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user