Skip to content

Perf: descendancy check #6038

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kantai
Copy link
Contributor

@kantai kantai commented Apr 25, 2025

Description

Adds a cache for the PoX descendancy check during LeaderBlockCommitOp processing.

kantai added 2 commits April 24, 2025 13:56
* add an index for the SQLite lookup that the routine requires. this improves block processing speeds.
@kantai kantai requested a review from a team as a code owner April 25, 2025 16:40
@wileyj
Copy link
Collaborator

wileyj commented Apr 25, 2025

ran this locally on an old chainstate (90k blocks behind tip) - syncing time is dramatically faster compared to 3.1.0.0.8.

@wileyj wileyj added this to the 3.1.0.0.9 milestone Apr 25, 2025
@wileyj wileyj requested review from hstove, jferrant and fdefelici April 25, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants