Don't break lines at 80 characters.
This commit is contained in:
parent
26bd5a864a
commit
8a8412f04a
|
@ -228,8 +228,7 @@ Transaction.prototype._isFeeTooLarge = function(opts) {
|
|||
return;
|
||||
}
|
||||
var fee = this._getUnspentValue();
|
||||
var maximumFee = Math.floor(
|
||||
Transaction.FEE_SECURITY_MARGIN * this._estimateFee());
|
||||
var maximumFee = Math.floor(Transaction.FEE_SECURITY_MARGIN * this._estimateFee());
|
||||
if (fee > maximumFee) {
|
||||
if (this._missingChange()) {
|
||||
return new errors.Transaction.ChangeAddressMissing(
|
||||
|
@ -245,8 +244,7 @@ Transaction.prototype._isFeeTooSmall = function(opts) {
|
|||
return;
|
||||
}
|
||||
var fee = this._getUnspentValue();
|
||||
var minimumFee = Math.ceil(
|
||||
this._estimateFee() / Transaction.FEE_SECURITY_MARGIN);
|
||||
var minimumFee = Math.ceil(this._estimateFee() / Transaction.FEE_SECURITY_MARGIN);
|
||||
if (fee < minimumFee) {
|
||||
return new errors.Transaction.FeeError.TooSmall(
|
||||
'expected more than ' + minimumFee + ' but got ' + fee);
|
||||
|
@ -264,8 +262,7 @@ Transaction.prototype._hasDustOutputs = function(opts) {
|
|||
var index, output;
|
||||
for (index in this.outputs) {
|
||||
output = this.outputs[index];
|
||||
if (output.satoshis < Transaction.DUST_AMOUNT &&
|
||||
!output.script.isDataOut()) {
|
||||
if (output.satoshis < Transaction.DUST_AMOUNT && !output.script.isDataOut()) {
|
||||
return new errors.Transaction.DustOutputs();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue