wallet defragmentation
This PR introduces wallet defragmentation, in order to solve the problems noticed by some users, notably Poloniex, where wallets with many outputs would fail to send coins with transaction too large
. This PR adds defragWallet()
, which is called after every block and sends the sum of the 15 largest outputs to itself.