Fix for small change outputs
authorPieter Wuille <pieter.wuille@gmail.com>
Sun, 24 Jul 2011 14:37:09 +0000 (16:37 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Sun, 24 Jul 2011 14:37:09 +0000 (16:37 +0200)
commita7dd11c6dadeb17cf5444dd29f3a63d80ef4b159
treedab1d118e95d63a66438959d20f48a8cfec5cf18
parentc2da35319d7d9c2a28a2299d09176a0459cf7e00
Fix for small change outputs

With the separation of CENT and MIN_TX_FEE, it is now reasonable
to create change outputs between 0.01 and 0.0005, as these are
spendable according to the policy, even though they require a fee
to be paid.

Also, when enough fee was already present, everything can go into
a change output, without further increasing the fee.
src/wallet.cpp