forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: evo snapshot v3 — canonical bounded codec and context-free validation #7592
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
PastaPastaPasta
wants to merge
23
commits into
dashpay:develop
Choose a base branch
from
PastaPastaPasta:feat/evo-snapshot-format
base: develop
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
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1aed37b
feat: add the evo snapshot v3 canonical bounded codec and context-fre…
PastaPastaPasta 67b4ae9
fix: build the ReadFixedBitSet trailing-bits mask without an implicit…
PastaPastaPasta 5bce0fc
test: cover the bounded CRangesSet unserializer
PastaPastaPasta 57dc6b1
fix: allow partial evo snapshot quorum history
PastaPastaPasta fd07f83
fix: reject full-domain ranges during deserialization
PastaPastaPasta 484fcec
fix: reject noncanonical MNHF signal order during deserialization
PastaPastaPasta 5b9e646
fix: bound commitment bitsets by a format ceiling instead of static L…
PastaPastaPasta 138387f
fix: validate credit-pool amounts and MNHF signal semantics context-free
PastaPastaPasta 18515f4
fix: replace previous contents when deserializing an evo snapshot
PastaPastaPasta a72328e
fix: bound same-prefix proTxHash runs against HAMT collision blowup
PastaPastaPasta 2de4d28
fix: bind the CbTx height in VerifyEvoSnapshotCbTx
PastaPastaPasta 6041092
fix: replace per-quorum contents when deserializing CQuorumSnapshotData
PastaPastaPasta d5ea6d5
fix: bound cumulative historical MN-list reconstruction work
PastaPastaPasta 9a20e94
refactor: drop the C prefix from the new evo snapshot types
PastaPastaPasta 0705557
refactor: give every evo snapshot collection one explicit canonical c…
PastaPastaPasta 039ce9e
build: list evo/snapshot.cpp where it is actually used
PastaPastaPasta 48effe4
fix: enforce the decoder's historical operation budget during validation
PastaPastaPasta 4810d04
test: exercise evo per-quorum replacement for every cleared vector
PastaPastaPasta 155ae33
test: name the noncanonical CRangesSet case for its actual defect
PastaPastaPasta 303e5e5
fix: enforce canonical evo snapshot encodings and bounds
PastaPastaPasta 1464506
fix: validate evo snapshot IDs and canonical BLS encodings
PastaPastaPasta 7ca7423
fix: apply evo snapshot diffs atomically and pin lazy BLS and update-…
PastaPastaPasta 5fff4fb
fix: reject revisited blocks and counter growth in the historical dif…
PastaPastaPasta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
why diff is applying for snapshot? What is scenario, when diff should be applied for snapshot?
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.
pastaclaw says:
Consider having full snapshots here instead applying it incrementally, it will simplify implementation and avoid having workarounds such as mentioned in PR: