Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not include zero value change outputs. #193

Merged
merged 1 commit into from
Apr 20, 2016

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Apr 20, 2016

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.

@alexlyp alexlyp mentioned this pull request Apr 20, 2016
@jcvernaleo
Copy link
Member

This looks good in my testing.
tACK

@cjepson
Copy link
Contributor

cjepson commented Apr 20, 2016

utACK

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.

Conflicts:
	wallet/txauthor/author.go
	wallet/txauthor/author_test.go
@jcvernaleo jcvernaleo merged commit df0af6e into decred:master Apr 20, 2016
@alexlyp alexlyp deleted the ayp_cherrypick branch April 21, 2016 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants