xnova/counterwallet — pull request #81 by JahPowerBit (2014-04-18 19:42:27+00:00)
Title: Use transaction chaining for sweeping

In first step, we merge all outputs for chaining properly transactions. Each change output serves as input for next transaction. So the final balance for BTC transfer is the change amount of last asset transferred.
TODO: think for a more economic way to have a reliable amount for the final tx (BTC) and empty completely the source address.
TODO: find the better way to get minimum fees when transaction failed with "insufficient Bitcoin"