Update payments.js
added TX priority config setting
This commit is contained in:
parent
acba927240
commit
ecf74a3b91
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ let shapeshiftQueue = async.queue(function (task, callback) {
|
|||
address: shapeshiftTxnData.sAddress
|
||||
}
|
||||
],
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn,
|
||||
payment_id: shapeshiftTxnData.deposit
|
||||
};
|
||||
|
|
@ -257,6 +258,7 @@ let xmrToQueue = async.queue(function (task, callback) {
|
|||
address: orderStatus.xmr_receiving_address
|
||||
}
|
||||
],
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn,
|
||||
payment_id: orderStatus.xmr_required_payment_id
|
||||
};
|
||||
|
|
@ -502,6 +504,7 @@ function Payee(amount, address, paymentID, bitcoin) {
|
|||
address: this.address
|
||||
}
|
||||
],
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn,
|
||||
payment_id: this.paymentID
|
||||
};
|
||||
|
|
@ -533,6 +536,7 @@ function Payee(amount, address, paymentID, bitcoin) {
|
|||
address: this.address
|
||||
}
|
||||
],
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn
|
||||
};
|
||||
let identifier = this.id;
|
||||
|
|
@ -640,6 +644,7 @@ function makePayments() {
|
|||
while (paymentDestinations.length > 0) {
|
||||
let paymentDetails = {
|
||||
destinations: paymentDestinations.splice(0, global.config.payout.maxPaymentTxns),
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn
|
||||
};
|
||||
console.log("Paying out: " + paymentDetails.destinations.length + " people");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue