novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

Too high fee when sending dust #428

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Someone decided to donate my BTC 0.00000001.

He paid a fee of 0.00014069. The transaction was done using bitcoinj 0.9 afaik.

http://blockexplorer.com/tx/baf38d557a5355341b1d4f5274135b62afdbd660b4bd5974b9d9
bc5bae3b63d4#i44925471

I'd expect a fee of BTC 0.0001, since its only a 338 bytes tx.

Original issue reported on code.google.com by andreas....@gmail.com on 9 Jul 2013 at 10:00

GoogleCodeExporter commented 9 years ago
This is semi-expected behavior. Bitcoinj decided it needed at least. .0001, but 
when it added up coins to get there, the resulting change was less than the 
dust limit, so it was thrown away to make the transaction meet dust limits. 
This doesn't quite make sense because of #429, but it would be right if the 
output wasn't already dust.

Original comment by coral...@google.com on 10 Jul 2013 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by coral...@google.com on 10 Jul 2013 at 12:20