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 off-by-one error for coinbase txes confirmation icons #3206

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Nov 19, 2019

We have 5 icons to show pending confirmation state /icons/transaction_1../icons/transaction_5

Here is an example of calculations for the transaction which is about to be fully confirmed.
Current code: (100*4/101)+1 = 4.96... but it's int -> 4
New code: (100*5/101)+1 = 5.95... but it's int -> 5

Thanks to Craig Durham for discovering the issue.

@UdjinM6 UdjinM6 added this to the 15 milestone Nov 19, 2019
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit df372ec into dashpay:develop Nov 21, 2019
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
FornaxA pushed a commit to ioncoincore/ion that referenced this pull request Jul 6, 2020
@UdjinM6 UdjinM6 deleted the fixoffbyoneicons branch November 26, 2020 11:37
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