Add check to _hasDustOutputs if output has OP_RETURN

This commit is contained in:
Gabriel Jaldon 2015-02-06 13:31:27 +08:00
parent ebcf3ae991
commit 89400c0a56
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ 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) {
return true;
}