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

Make retrieving inscriptions in block fast #2333

Merged
merged 11 commits into from
Aug 17, 2023

Conversation

veryordinally
Copy link
Collaborator

@veryordinally veryordinally commented Aug 16, 2023

Implementing first part of #2329 - performance improvements to get_inscriptions_in_block by introducing an in-memory index.

Ordinally added 6 commits August 16, 2023 11:24
…on for first inscription block height in the test RPC server.
Fix test - when we make inscriptions in integration tests below the default block for first_inscription_height, we need to specify the correct height to the server.
Gracefully handle the case where first_inscription_height is set too high - the index will now work correctly (albeit a little slower) by using saturating_sub, essentially bucketing all blocks with inscriptions below first_inscription_height into the first block.
@veryordinally veryordinally changed the title Inscriptions in Block Make retrieving inscriptions in block fast Aug 17, 2023
@veryordinally veryordinally marked this pull request as ready for review August 17, 2023 11:56
Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

Excited to build stuff with this!

@raphjaph raphjaph enabled auto-merge (squash) August 17, 2023 12:50
@raphjaph raphjaph merged commit 621a747 into ordinals:master Aug 17, 2023
6 checks passed
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.

None yet

2 participants