monetas/btcwallet — pull request #82 by gsalgado (2014-11-18 16:39:51+00:00)
Title: Make sure we only add the last TxOut of created transactions as an unspent output when that is a change output

It might be easier to review each commit individually, as the first two ones
are just refactorings to make the actual fix simpler.