-
Notifications
You must be signed in to change notification settings - Fork 209
Differentiate between Consensus and Cluster Headers storage #8222
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
tim-barry
wants to merge
73
commits into
master
Choose a base branch
from
tim/4204-split-header-storage-by-chainid
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
Changes from 60 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
f3c7603
add ChainID parameter to Header storage
tim-barry 0fe4007
update cluster mutator/snapshot tests
tim-barry 467b732
update header generation in cluster builder tests
tim-barry 585c0e9
update mock usage in epochmgr tests
tim-barry 6d9c389
enable TestExtend_WithReferenceBlockFromClusterChain
tim-barry 927b229
fix FinalizedAncestryLookup during cluster switchover
tim-barry 81ffdeb
Use appropriate height index for header storage
tim-barry 99a2498
Merge branch 'master' into tim/4204-split-header-storage-by-chainid
tim-barry 6253765
Merge branch 'master' into tim/4204-split-header-storage-by-chainid
tim-barry a22fd0b
introduce sentinel error for incorrect header chain
tim-barry ee80525
update default ChainID for cluster block fixture in tests
tim-barry 2ecfee1
update tests
tim-barry 6fe94ec
move IsClusterChain to a method on ChainID
tim-barry 2fbe0b5
Add NewClusterHeaders constructor and make chainID checks more explicit
tim-barry f16ccbf
add chain-specific lock checks for header insertion
tim-barry c24be76
update determineChainID() and document expected errors
tim-barry e397124
Fix bug in populateFinalizedAncestryLookup and remove workaround
tim-barry f53d361
clarify chainID is for consensus
tim-barry a93fcfa
address some TODOs for initializing storage during util commands
tim-barry 62d9ee0
remove completed TODO
tim-barry 5708e46
rewrite determineChainID() for clarity; move preInitFns before ChainI…
tim-barry 6134b48
use only necessary storage interfaces in read-badger commands
tim-barry c1af7a8
fixed typos
AlexHentschel 9e506b1
added deprecation notice
AlexHentschel 789ab94
fix reference block in collection finalizer test
tim-barry 3c57826
Add operation.InsertClusterHeader
tim-barry 0e0e37a
update required lock for operation.InsertHeader
tim-barry dae7d73
rename+move IsClusterID next to CanonicalClusterID; use regex
tim-barry a6cc833
Consistently use valid/canonical cluster chainIDs in tests
tim-barry c0bdbac
Merge branch 'master' into tim/4204-split-header-storage-by-chainid
tim-barry a6a98a6
Apply suggestions from code review
tim-barry 7737e6b
fix lint
tim-barry d2f2846
rename to `clusterHeaders` where appropriate
tim-barry 8c2f842
continue rename of clusterHeaders vars/fields
tim-barry d0dd8fd
remove unused field in collection builder test
tim-barry 8ffd89a
update doc comments for Headers storage
tim-barry 3b53515
add some tests for storing/retrieving on headers with wrong chain
tim-barry 6613eda
update error returns for storage.Blocks
tim-barry ccaa0d1
clarify Headers.ByView not available for cluster blocks
tim-barry 7e28024
test lock holding requirements for storing headers
tim-barry b1d4cbb
use canonical ClusterIDs in channels_test package
tim-barry cf5cdc8
add unit test for IsCanonicalClusterID
tim-barry 2a4240a
minor: use unittest.WithLocks in header test
tim-barry de3e77f
Add IncompleteStateError for missing data required by protocol
tim-barry 7bad925
use exceptions when failing to retrieve ChainID on startup
tim-barry ceb47b1
rename GetChainIDFromLatestFinalizedHeader -> GetChainID
tim-barry d49895a
Update storage/store/headers.go
tim-barry 9cfaddd
Merge branch 'master' into tim/4204-split-header-storage-by-chainid
tim-barry 0819804
post-merge: update util cmd for storage changes
tim-barry d4c6bcc
fix: cluster ref height range for transaction deduplication
tim-barry 00b68f9
minor fixes
tim-barry ce7f73f
replace panic with error return in NewHeaders storage initialization
tim-barry c63ad7e
ensure we halt and surface error instead of bootstrapping if state is…
tim-barry 5aec0c8
update comments for epoch first/final height caching
tim-barry 7796d9a
update comments for GetLatestFinalizedHeader
tim-barry e9eedc4
minor documentation extensions
AlexHentschel ad56c4f
headers documentation
AlexHentschel 187dbf7
`blocks` documentation
AlexHentschel 355b43f
minor doc polishing
AlexHentschel e4d1235
Apply suggestions from code review
tim-barry 020aaed
Apply suggestions from code review
tim-barry 1dc2936
fix import
tim-barry 8aecaa1
minor fixes
tim-barry bc69f0f
Update docs+errors for Header storage
tim-barry 2523aa3
Update docs+errors for blocks/clusterblocks storage
tim-barry b376fc9
update error returns for failure to retrieve indexed blocks
tim-barry 100cfc9
minor fixups
tim-barry b2ac2b6
clarify caching of epoch starting height in collection builder
tim-barry 6db6bf6
refactor error returns in Headers.ByParentID
tim-barry 08e65e8
Test Proposal retrieval alongside Block/Header retrieval
tim-barry 5aa5c4d
Merge branch 'master' into tim/4204-split-header-storage-by-chainid
tim-barry abd6b9f
fix typo
tim-barry 2a14b8d
return IncompleteStateError from GetLatestFinalizedHeader
tim-barry 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.