Fix sendBitcoins

This commit is contained in:
Maciej Małecki 2014-04-15 16:26:09 +02:00
parent 36081c4109
commit 230b31cdbe

View file

@ -122,7 +122,7 @@ Trader.prototype.sendBitcoins = function (deviceFingerprint, tx, cb) {
return self.transferExchange.sendBitcoins( return self.transferExchange.sendBitcoins(
tx.toAddress, tx.toAddress,
tx.satoshis, tx.satoshis,
self.config.settings.transactionFee, self.config.exchanges.settings.transactionFee,
function(err, txHash) { function(err, txHash) {
if (err) { if (err) {
self.db.reportTransactionError(tx, err); self.db.reportTransactionError(tx, err);
@ -131,7 +131,7 @@ Trader.prototype.sendBitcoins = function (deviceFingerprint, tx, cb) {
cb(null, txHash); cb(null, txHash);
self.db.completeTransaction(tx, txHash); self.db.completeTransaction(tx, txHash);
self.triggerBalance(); self.pollRate();
} }
); );
} }