cculianu / DonateSpareChange

A plugin for Electron Cash to automatically donate "change" outputs below a certain amount to charity.
3 stars 1 forks source link

Add mechanism to eliminate coin by donating to miner #6

Open imaginaryusername opened 5 years ago

imaginaryusername commented 5 years ago

For spams that are very small ( < 731 bytes) the Donate Spare Change plugin cannot currently deal with them; they will likely either remain there forever, or have to be combined with another coin when spent together, creating a privacy problem.

One way to deal with them may be to create a one-in-one-out transaction where the output is a minimal op_return (for example, pushing 1 byte), therefore "donating" any excess output to the miner and net eliminating one UTXO. It can be automated against any outputs that are already too small do donate currently.