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

Fixed handling for max coin amount when it is set to zero & updated unit tests #16893

Closed
wants to merge 2 commits into from

Conversation

jack60612
Copy link
Contributor

Purpose:

Allows transactions to go through when the max coin amount is set to zero, this is commonly used as a default by most cli commands.
Fixes chia wallet coins combine when used with fee
Resolves #16802

Current Behavior:

when no max coin value is set with some rpc / cli calls, max coin ammt is set to zero so no fees coins can be found.

New Behavior:

max coin amount set to max coin constant, fee coin searching succeeds.

Testing Notes:

Updated Unit tests

@jack60612 jack60612 added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Nov 20, 2023
@jack60612 jack60612 marked this pull request as ready for review November 20, 2023 19:50
@jack60612 jack60612 requested a review from a team as a code owner November 20, 2023 19:50
Comment on lines +87 to +89
max_coin_amount=uint64(constants.MAX_COIN_AMOUNT)
if (self.max_coin_amount is None or self.max_coin_amount == 0)
else self.max_coin_amount,
Copy link
Contributor

Choose a reason for hiding this comment

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

0 as a max coin amount is a valid option to specify so I don't think this is the place to fix this issue. Instead, we should fix whatever is using 0 as an explicit default here.

@jack60612
Copy link
Contributor Author

replaced with #15718

@jack60612 jack60612 closed this Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Combining coins with fee
2 participants