Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcwallet
  Commit: 7b2e1ac282ba5279d2a5977c1306d8bf8e750eaf
      
https://github.com/btcsuite/btcwallet/commit/7b2e1ac282ba5279d2a5977c1306d8bf8e750eaf
  Author: Josh Rickmar <[email protected]>
  Date:   2016-04-20 (Wed, 20 Apr 2016)

  Changed paths:
    M wallet/txauthor/author.go
    M wallet/txauthor/author_test.go

  Log Message:
  -----------
  Do not include zero value change outputs.

Due to the way dust is calculated, if the transaction relay fee is
zero, then a zero output amount is not considered dust.  As the
transaction authoring code used this dust check to determine whether a
change output can be included or not, it could create unnecessary
change outputs which return no value back to the wallet.  Prevent this
by including an explicit check for zero values.


Reply via email to