Skip to content

Remove dust avoidance for OP_RETURN output#1

Open
deeb33 wants to merge 1 commit intounwriter:masterfrom
deeb33:Dust-dataout-fix
Open

Remove dust avoidance for OP_RETURN output#1
deeb33 wants to merge 1 commit intounwriter:masterfrom
deeb33:Dust-dataout-fix

Conversation

@deeb33
Copy link
Copy Markdown

@deeb33 deeb33 commented Oct 30, 2018

OP_RETURN outputs don't require a non-dust output value. If a non-zero
value is put into the output, the amount becomes unspendable and lost
forever.

I've tested the change with a small html file which I have not included in the pull request at this time. The results of the test can be found on memo.cash by searching for "sorry dave" and and viewing the tx on one of the block explorers.

One concern: the datacash code allows for arbitrary scripts to be passed in. If something other than a dataout type script is given, then the zero value output would cause the tx to be rejected.

OP_RETURN outputs don't require a non-dust output value.  If a non-zero
value is put into the output, the amount becomes unspendable and lost
forever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant