Try to reduce change output to make needed fee in CreateTransaction
commit42f5ce40931402aaa395ef2959deb64e9a9fff02
authorAlex Morcos <morcos@chaincode.com>
Thu, 5 Jan 2017 14:10:08 +0000 (5 09:10 -0500)
committerAlex Morcos <morcos@chaincode.com>
Fri, 6 Jan 2017 15:12:05 +0000 (6 10:12 -0500)
tree650bad83761a48cafdeed51a047fb3a63b559a3c
parentf646275b90b1de93bc62b4c4d045d75ac0b96eee
Try to reduce change output to make needed fee in CreateTransaction

Once we've picked coins and dummy-signed the transaction to calculate fee, if we don't have sufficient fee, then try to meet the fee by reducing change before resorting to picking new coins.
src/wallet/wallet.cpp
src/wallet/wallet.h