-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: add principal cache etag to account endpoints #2097
Conversation
Vercel deployment URL: https://stacks-blockchain-iekoi4xty-hirosystems.vercel.app 🚀 |
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@zone117x I've added the fix for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
## [8.1.0-beta.1](v8.0.3...v8.1.0-beta.1) (2024-10-07) ### Features * add block etag ([#2103](#2103)) ([66e6800](66e6800)) * add cache handler for principal activity including mempool transactions ([#2100](#2100)) ([2370c21](2370c21)) * add principal cache etag to account endpoints ([#2097](#2097)) ([28e9864](28e9864)) * return estimated balance in account balance endpoints ([#2104](#2104)) ([e217cea](e217cea)) ### Bug Fixes * prune and restore mempool transactions with equal nonces for the same sender ([#2091](#2091)) ([1ce75de](1ce75de)) * use total_count CTE and return it with the parsed results ([#2073](#2073)) ([bb30911](bb30911))
🎉 This PR is included in version 8.1.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [8.1.0](v8.0.4...v8.1.0) (2024-10-16) ### Features * add block etag ([#2103](#2103)) ([66e6800](66e6800)) * add cache handler for principal activity including mempool transactions ([#2100](#2100)) ([2370c21](2370c21)) * add principal cache etag to account endpoints ([#2097](#2097)) ([28e9864](28e9864)) * return estimated balance in account balance endpoints ([#2104](#2104)) ([e217cea](e217cea)) ### Bug Fixes * add declaration copy step in build ([#2110](#2110)) ([2b6aa6a](2b6aa6a)) * prune and restore mempool transactions with equal nonces for the same sender ([#2091](#2091)) ([1ce75de](1ce75de)) * randomize key order for testnet stx faucet transactions ([#2120](#2120)) ([f7265f9](f7265f9)) * update mempool garbage collection logic for 3.0 ([#2117](#2117)) ([8b10b69](8b10b69)) * use total_count CTE and return it with the parsed results ([#2073](#2073)) ([bb30911](bb30911))
🎉 This PR is included in version 8.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Creates an ETag for endpoints that serve confirmed data for a single principal (address or contract ID) and adds it to all single-account endpoints.
The ETag is formed with the SHA256 of a string containing the last transaction IDs of those that changed the account's STX, FT or NFT balance:
Other changes:
sponsor_address
in entries to theprincipal_stx_txs
table, including a migration to backfill missing transactionsA future PR will add a similar ETag but also considering that account's mempool activity.
#1230