|
|
@ -151,12 +151,10 @@ Transaction.prototype._validateChange = function() { |
|
|
|
Transaction.DUST_AMOUNT = 5460; |
|
|
|
|
|
|
|
Transaction.prototype._hasDustOutputs = function() { |
|
|
|
var output; |
|
|
|
for (output in this.outputs) { |
|
|
|
if (this.outputs[output].script.isDataOut()) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (this.outputs[output].satoshis < Transaction.DUST_AMOUNT) { |
|
|
|
var index, output; |
|
|
|
for (index in this.outputs) { |
|
|
|
output = this.outputs[index]; |
|
|
|
if (output.satoshis < Transaction.DUST_AMOUNT && !output.script.isDataOut()) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|