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

[Tests] Don't create dust outputs in small_txpuzzle_randfee #2153

Merged

Conversation

random-zebra
Copy link

small_txpuzzle_randfee function (in feature_fee_estimation functional test) can rarely create raw transactions with dust outputs, which cause the test failure (https://github.com/PIVX-Project/PIVX/runs/1745765860).

Prevent this by checking the change value, and adding it to the fee, if it is below the threshold, same as we do in internally in CWallet::CreateTransaction.

@random-zebra random-zebra added this to the 5.1.0 milestone Jan 22, 2021
@random-zebra random-zebra self-assigned this Jan 22, 2021
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

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

utACK a3bfe80

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

ACK a3bfe80

@random-zebra
Copy link
Author

Merging...

@random-zebra random-zebra merged commit f6509c3 into PIVX-Project:master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants