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

fix CalcAmount() #96

Merged
merged 2 commits into from
Dec 8, 2021
Merged

fix CalcAmount() #96

merged 2 commits into from
Dec 8, 2021

Conversation

alejoacosta74
Copy link
Collaborator

Motivation

function CalcAmount() in rpc_types.go does not return the correct sum of utxo values
See: https://go.dev/play/p/wRuBJg2uBD1

Solution

Replaced add method from shopspring/decimal with math/big

Open questions

N/A

@ripply ripply merged commit b8ca869 into qtumproject:master Dec 8, 2021
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.

2 participants