WIP tweaks

This commit is contained in:
Josh Harvey 2014-11-28 16:04:30 -05:00
parent 5c82d2ad95
commit 9546b71a6e
3 changed files with 22 additions and 13 deletions

View file

@ -12,7 +12,7 @@ var REAP_RATE = 2 * 1000;
var PENDING_TIMEOUT = 70 * 1000;
// TODO: might have to update this if user is allowed to extend monitoring time
var DEPOSIT_TIMEOUT = 120 * 1000;
var DEPOSIT_TIMEOUT = 130 * 1000;
var db = null;
@ -325,8 +325,7 @@ exports.trade = function trade(session, rawTrade, cb) {
};
async.parallel([
async.apply(db.addOutgoingPending, session, tx.currencyCode, tx.toAddress,
tx.satoshis),
async.apply(db.addOutgoingPending, session, tx.currencyCode, tx.toAddress),
async.apply(db.recordBill, session, rawTrade)
], cb);
};