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

[python] build_tx tool: fix amount inaccuracy by parsing with Decimal #1257

Merged
merged 1 commit into from Sep 14, 2020

Conversation

mcudev
Copy link
Contributor

@mcudev mcudev commented Sep 13, 2020

The "Input amount" was being parsed and displayed incorrectly sometimes while the user was entering the previous outputs to spend.
Also, amount values in the generated bin_outputs of the prev_txes were incorrect sometimes.
Only some amounts were wrong, and each time that I witnessed this, the values were off by one in the least significant digit.
This fix of parsing the amounts with the Decimal class fixed all the problems that I encountered.

@matejcik
Copy link
Contributor

yes, this should have been there from the start. thanks 👍

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

3 participants