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

Compute confirmations correctly #2317

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

luckysori
Copy link
Contributor

Fixes #2222.

The original logic was flawed because it would correctly show 1 confirmation when the transaction was included in a block, but it would subsequently deduct 1 confirmation after the second confirmation.

We were already doing this correctly for the Blockchain struct, so there is nothing to fix there.

The original logic was flawed because it would correctly show 1
confirmation when the transaction was included in a block, but it
would subsequently deduct 1 confirmation after the second
confirmation.

We were already doing this correctly for the `Blockchain` struct, so
there is nothing to fix there.
@luckysori luckysori self-assigned this Mar 25, 2024
Copy link
Contributor

@holzeis holzeis left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@luckysori luckysori added this pull request to the merge queue Mar 25, 2024
Merged via the queue into main with commit efcdc35 Mar 25, 2024
22 checks passed
@luckysori luckysori deleted the fix/confirmation-calculation branch March 25, 2024 06:45
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.

App shows one confirmation less
2 participants