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

IBD sync: recover sampled window #598

Merged
merged 14 commits into from
Nov 28, 2024

Conversation

michaelsutton
Copy link
Contributor

@michaelsutton michaelsutton commented Nov 15, 2024

Fixes a rare bug in TN11 where the syncer does not send sufficient DAA window blocks required for recovering the sampled DAA window.
The sampling mechanism relies on DAA indexes which can only be calculated correctly if the full mergesets covering all sampled blocks are sent.

Note: fixes a (future) bug from the recent PR where cache entries were not filtered by origin. See commit.

Edit: added also a refactor to tx time lock validation and some long due renames for various tx validation modules

@michaelsutton michaelsutton marked this pull request as ready for review November 19, 2024 14:58
coderofstuff
coderofstuff previously approved these changes Nov 26, 2024
Copy link
Collaborator

@coderofstuff coderofstuff left a comment

Choose a reason for hiding this comment

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

I'm approving this based on my read that each commit here accomplishes the intended change of:

  • ensuring cache reader can only get a window if the window's origin matches the reader's
  • the locktime logic doesn't leak outside of the locktime checks
  • documentation and refactors/rename

@michaelsutton michaelsutton merged commit c63dfc0 into kaspanet:master Nov 28, 2024
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.

4 participants