Add check to _hasDustOutputs if output has OP_RETURN
This commit is contained in:
parent
ebcf3ae991
commit
89400c0a56
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue