|
|
@ -230,7 +230,7 @@ Transaction.prototype._isFeeTooLarge = function(opts) { |
|
|
|
var maximumFee = Math.floor(Transaction.FEE_SECURITY_MARGIN * this._estimateFee()); |
|
|
|
if (fee > maximumFee) { |
|
|
|
if (this._missingChange()) { |
|
|
|
return new errors.Transaction.ChangeAddressMissing( 'Fee is too large and no change address was provided'); |
|
|
|
return new errors.Transaction.ChangeAddressMissing('Fee is too large and no change address was provided'); |
|
|
|
} |
|
|
|
return new errors.Transaction.FeeError.TooLarge('expected less than ' + maximumFee + ' but got ' + fee); |
|
|
|
} |
|
|
|