mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Update to fix XMR.to support.
This commit is contained in:
@@ -238,7 +238,7 @@ let xmrToQueue = async.queue(function (task, callback) {
|
||||
} else {
|
||||
console.log(JSON.stringify(body));
|
||||
global.mysql.query("INSERT INTO xmrtoTxn (id, address, paymentID, depositType, withdrawl, withdrawlType, returnAddress, returnAddressType, txnStatus, amountDeposited, amountSent) VALUES (?,?,?,?,?,?,?,?,?,?,?)",
|
||||
[txnID, body.xmr_receiving_address, body.xmr_required_payment_id, 'XMR', body.btc_dest_address, 'BTC', global.config.pool.address, 'XMR', body.state_str, global.support.decimalToCoin(body.xmr_amount_total), global.support.decimalToCoin(body.btc_amount)]).then(function () {
|
||||
[txnID, body.xmr_receiving_address, body.xmr_required_payment_id_long, 'XMR', body.btc_dest_address, 'BTC', global.config.pool.address, 'XMR', body.state_str, global.support.decimalToCoin(body.xmr_amount_total), global.support.decimalToCoin(body.btc_amount)]).then(function () {
|
||||
return intCallback(null, body, global.support.decimalToCoin(body.xmr_amount_total));
|
||||
}).catch(function (error) {
|
||||
return intCallback(error);
|
||||
@@ -257,7 +257,7 @@ let xmrToQueue = async.queue(function (task, callback) {
|
||||
],
|
||||
priority: global.config.payout.priority,
|
||||
mixin: global.config.payout.mixIn,
|
||||
payment_id: orderStatus.xmr_required_payment_id
|
||||
payment_id: orderStatus.xmr_required_payment_id_long
|
||||
};
|
||||
debug("Payment Details: " + JSON.stringify(paymentDetails));
|
||||
paymentQueue.push(paymentDetails, function (body) {
|
||||
|
||||
Reference in New Issue
Block a user