mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
Update payments.js
added TX priority config setting
This commit is contained in:
@@ -107,6 +107,7 @@ let shapeshiftQueue = async.queue(function (task, callback) {
|
|||||||
address: shapeshiftTxnData.sAddress
|
address: shapeshiftTxnData.sAddress
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
priority: global.config.payout.priority,
|
||||||
mixin: global.config.payout.mixIn,
|
mixin: global.config.payout.mixIn,
|
||||||
payment_id: shapeshiftTxnData.deposit
|
payment_id: shapeshiftTxnData.deposit
|
||||||
};
|
};
|
||||||
@@ -257,6 +258,7 @@ let xmrToQueue = async.queue(function (task, callback) {
|
|||||||
address: orderStatus.xmr_receiving_address
|
address: orderStatus.xmr_receiving_address
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
priority: global.config.payout.priority,
|
||||||
mixin: global.config.payout.mixIn,
|
mixin: global.config.payout.mixIn,
|
||||||
payment_id: orderStatus.xmr_required_payment_id
|
payment_id: orderStatus.xmr_required_payment_id
|
||||||
};
|
};
|
||||||
@@ -502,6 +504,7 @@ function Payee(amount, address, paymentID, bitcoin) {
|
|||||||
address: this.address
|
address: this.address
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
priority: global.config.payout.priority,
|
||||||
mixin: global.config.payout.mixIn,
|
mixin: global.config.payout.mixIn,
|
||||||
payment_id: this.paymentID
|
payment_id: this.paymentID
|
||||||
};
|
};
|
||||||
@@ -533,6 +536,7 @@ function Payee(amount, address, paymentID, bitcoin) {
|
|||||||
address: this.address
|
address: this.address
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
priority: global.config.payout.priority,
|
||||||
mixin: global.config.payout.mixIn
|
mixin: global.config.payout.mixIn
|
||||||
};
|
};
|
||||||
let identifier = this.id;
|
let identifier = this.id;
|
||||||
@@ -640,6 +644,7 @@ function makePayments() {
|
|||||||
while (paymentDestinations.length > 0) {
|
while (paymentDestinations.length > 0) {
|
||||||
let paymentDetails = {
|
let paymentDetails = {
|
||||||
destinations: paymentDestinations.splice(0, global.config.payout.maxPaymentTxns),
|
destinations: paymentDestinations.splice(0, global.config.payout.maxPaymentTxns),
|
||||||
|
priority: global.config.payout.priority,
|
||||||
mixin: global.config.payout.mixIn
|
mixin: global.config.payout.mixIn
|
||||||
};
|
};
|
||||||
console.log("Paying out: " + paymentDetails.destinations.length + " people");
|
console.log("Paying out: " + paymentDetails.destinations.length + " people");
|
||||||
|
|||||||
Reference in New Issue
Block a user