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: differentiate mempool transactions when calculating principal etag #2126

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Oct 18, 2024

Fixes a bug where a mempool balance did not convert to confirmed balance due to a duplicate Etag calculation. This was because we were taking all the latest tx_ids that affected an account (both confirmed and mempool) to calculate the Etag, but when a mempool tx becomes confirmed the Etag did not change because that transaction retains the same transaction ID.

The solution is to prepend a string such as mempool- to a mempool transaction ID so the Etag will change once that transaction confirms.

Copy link

Vercel deployment URL: https://stacks-blockchain-1j1co05gd-hirosystems.vercel.app 🚀

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr merged commit b9dee2a into master Oct 18, 2024
28 checks passed
@rafaelcr rafaelcr deleted the fix/mempool-confirm-cache branch October 18, 2024 20:35
blockstack-devops pushed a commit that referenced this pull request Oct 18, 2024
## [8.1.1](v8.1.0...v8.1.1) (2024-10-18)

### Bug Fixes

* identify mempool transactions separately when calculating principal etag ([#2126](#2126)) ([b9dee2a](b9dee2a))
@blockstack-devops
Copy link

🎉 This PR is included in version 8.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants