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

Absurd fee bug #136

Merged
merged 5 commits into from
Sep 22, 2018
Merged

Absurd fee bug #136

merged 5 commits into from
Sep 22, 2018

Conversation

leto
Copy link
Member

@leto leto commented Jun 21, 2018

This fixes the "absurd fee bug" for small transaction amounts (when amount < fee), more details here:
zcash/zcash#3281

This directly effects HushList protocol, since HushList wants to be able to send amount=0 transactions with default fee, but Zcash upstream currently has a bug which forces a non-default fee, which leaks metadata.

Most likely all Zcash forks have this bug, except the ones that haven't merged since Zcash introduced this from BTC upstream.

@leto
Copy link
Member Author

leto commented Jun 22, 2018

FYI All tests wallet.py tests pass for me on Ubuntu 16.04 . To run the tests for this PR:
./qa/pull-tester/rpc-tests.sh wallet

Copy link
Contributor

@FireMartZ FireMartZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. +1 for updating unit test! 👍

zkbot added a commit to zcash/zcash that referenced this pull request Jul 17, 2018
Fix absurd fee bug reported in #3281, with tests

This was ported from the Hush `absurd_fee_bug` PR: MyHush/hush#136

Tests executed with `./qa/pull-tester/rpc-tests.sh wallet` and pass on Ubuntu 16.04. Some tests were added for previously untested behavior as well.

Closes #3281.
@leto leto merged commit 3ac1bad into dev Sep 22, 2018
@leto
Copy link
Member Author

leto commented Sep 22, 2018

FYI I forgot to merge this and it should be in our next release

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.

None yet

2 participants