From ba54b01797ba32b32f8e2718b485fe03cd6ba174 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 16 Jun 2015 18:05:26 -0300 Subject: [PATCH] remove safety check, log error --- lib/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index b805aab..740107d 100644 --- a/lib/server.js +++ b/lib/server.js @@ -728,10 +728,10 @@ WalletService.prototype._selectTxInputs = function(txp, cb) { if (!bitcoreError) { txp.inputPaths = _.pluck(txp.inputs, 'path'); txp.fee = bitcoreTx.getFee(); - $.checkState(txp.fee < 1e8, 'Fees are too high!'); return cb(); } } catch (ex) { + log.error('Error building Bitcore transaction', ex); return cb(ex); } } @@ -797,7 +797,7 @@ WalletService.prototype.createTx = function(opts, cb) { return cb(new ClientError('Required argument missing')); var feePerKb = opts.feePerKb || 10000; - if (feePerKb > 10000) + if (feePerKb < WalletUtils.MIN_FEE_PER_KB || feePerKb > WalletUtils.MAX_FEE_PER_KB) return cb(new ClientError('Invalid fee per KB value')); self._runLocked(cb, function(cb) {