-
Notifications
You must be signed in to change notification settings - Fork 155
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
Open
michaelsutton
wants to merge
9
commits into
kaspanet:master
Choose a base branch
from
michaelsutton:ibd-cover-sampled-window
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
IBD sync: recover sampled window #598
michaelsutton
wants to merge
9
commits into
kaspanet:master
from
michaelsutton:ibd-cover-sampled-window
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
michaelsutton
force-pushed
the
ibd-cover-sampled-window
branch
from
November 19, 2024 14:58
072bac7
to
f76c71c
Compare
…avoid leaking logic out of the TransactionValidator)
someone235
requested changes
Nov 24, 2024
@@ -20,8 +20,13 @@ pub(crate) enum LockTimeArg { | |||
} | |||
|
|||
impl TransactionValidator { | |||
pub(crate) fn utxo_free_tx_validation_with_args(&self, tx: &Transaction, ctx_daa_score: u64, ctx_block_time: u64) -> TxResult<()> { | |||
self.utxo_free_tx_validation( | |||
pub(crate) fn header_contextual_tx_validation_with_args( |
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.
I would write here or in the top of the file something like: "Validations that depend on this header and its past headers (and not related to UTXO or other transactions)"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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