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: optimize block rollback logic for re-orgs #279

Merged
merged 8 commits into from
Dec 5, 2023
Merged

fix: optimize block rollback logic for re-orgs #279

merged 8 commits into from
Dec 5, 2023

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented Dec 2, 2023

Also

  • Move BRC-20 ingestion to batch processing, use in-memory data instead of query results
  • Move chain_tip to a table instead of materialized view

Copy link

github-actions bot commented Dec 2, 2023

Vercel deployment URL: https://ordinals-24j7ubuu9-blockstack.vercel.app 🚀

Copy link

codecov bot commented Dec 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (67ba3d4) 95.31% compared to head (9c4efcc) 96.36%.
Report is 1 commits behind head on beta.

❗ Current head 9c4efcc differs from pull request most recent head 7c67f73. Consider uploading reports for the commit 7c67f73 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             beta     #279      +/-   ##
==========================================
+ Coverage   95.31%   96.36%   +1.04%     
==========================================
  Files          60       60              
  Lines        6169     6128      -41     
  Branches      561      554       -7     
==========================================
+ Hits         5880     5905      +25     
+ Misses        285      221      -64     
+ Partials        4        2       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rafaelcr rafaelcr marked this pull request as ready for review December 4, 2023 19:44
@rafaelcr rafaelcr merged commit 293c323 into beta Dec 5, 2023
5 checks passed
@rafaelcr rafaelcr deleted the fix/reorgs branch December 5, 2023 15:23
blockstack-devops pushed a commit that referenced this pull request Dec 5, 2023
## [2.0.1-beta.4](v2.0.1-beta.3...v2.0.1-beta.4) (2023-12-05)

### Bug Fixes

* optimize block rollback logic for re-orgs ([#279](#279)) ([293c323](293c323))
@blockstack-devops
Copy link

🎉 This PR is included in version 2.0.1-beta.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

blockstack-devops pushed a commit that referenced this pull request Dec 5, 2023
## [2.0.1](v2.0.0...v2.0.1) (2023-12-05)

### Bug Fixes

* add ENV to toggle inscription gap detection ([56ab283](56ab283))
* optimize block rollback logic for re-orgs ([#279](#279)) ([293c323](293c323))
* select only the first inscription id match ([106368e](106368e))
* upgrade chainhook client to v1.4.2 ([#277](#277)) ([67ba3d4](67ba3d4))
@blockstack-devops
Copy link

🎉 This PR is included in version 2.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

g0drlc added a commit to g0drlc/btc-ordinals-api that referenced this pull request Jul 14, 2024
## [2.0.1-beta.4](hirosystems/ordinals-api@v2.0.1-beta.3...v2.0.1-beta.4) (2023-12-05)

### Bug Fixes

* optimize block rollback logic for re-orgs ([#279](hirosystems/ordinals-api#279)) ([293c323](hirosystems/ordinals-api@293c323))
g0drlc added a commit to g0drlc/btc-ordinals-api that referenced this pull request Jul 14, 2024
## [2.0.1](hirosystems/ordinals-api@v2.0.0...v2.0.1) (2023-12-05)

### Bug Fixes

* add ENV to toggle inscription gap detection ([56ab283](hirosystems/ordinals-api@56ab283))
* optimize block rollback logic for re-orgs ([#279](hirosystems/ordinals-api#279)) ([293c323](hirosystems/ordinals-api@293c323))
* select only the first inscription id match ([106368e](hirosystems/ordinals-api@106368e))
* upgrade chainhook client to v1.4.2 ([#277](hirosystems/ordinals-api#277)) ([67ba3d4](hirosystems/ordinals-api@67ba3d4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants