databutton icon indicating copy to clipboard operation
databutton copied to clipboard

Remove dust avoidance for OP_RETURN output

Open deeb33 opened this issue 6 years ago • 0 comments

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.

deeb33 avatar Oct 30 '18 08:10 deeb33