databutton
databutton copied to clipboard
Remove dust avoidance for OP_RETURN output
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.