-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor fork database #347
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
064f238
Remove cout in unittest, replace with dlog
heifner 93511f3
GH-333 Remove unneeded calls to forkdb->head()
heifner eac6bc7
GH-333 Make public controller fork_db_head* return fork db pending head
heifner 096c3a1
GH-333 Send branch from chain_head, also rename fork_head in connecti…
heifner 171cda4
GH-333 Use local fork_db_head_irreversible_blocknum with chain_head i…
heifner 04945ce
GH-333 Use pending head for branch of irreversible
heifner ca11e84
GH-333 Use pending head during startup instead of head
heifner a6f1ba9
GH-333 Remove fork_db_head_or_pending
heifner c9de9a3
GH-333 Optimize get_info by extracting block_num from id
heifner 44bcc6c
GH-333 Update test to use head
heifner 13ef4f1
GH-333 Remove valid from fork choice rule. Optionally return root fro…
heifner a411680
GH-333 Store if_irreversible_block_id in fork database
heifner 06b2c88
GH-333 Use fork database to track savanna irreversible block id
heifner aa4ba63
GH-333 Add debug log output of maybe_switch_forks
heifner 201a1d5
GH-333 Verify correct type of block state
heifner 3c1dfe1
GH-333 Transition valid blocks
heifner 0d5c8c2
GH-333 Add startup tests in irreversible mode
heifner c60e459
GH-333 Maintain legacy only advancing LIB via validated blocks. Trans…
heifner 53a3e53
GH-333 Remove mark_valid from fork_database since validated no longer…
heifner 6379dcf
Merge remote-tracking branch 'spring/replay_test' into GH-333-forkdb-…
heifner 7aa505d
GH-333 Mark block state in forkdb as valid
heifner 53ba6e2
GH-333 Fix bad block legacy fork test to allow forking on second to l…
heifner 5cc3030
GH-333 Renamed pending_head() to head()
heifner cebccfc
GH-333 Fix comment
heifner d67c298
GH-333 Modify fork_database to use block_state is_valid, set_valid vi…
heifner 099c53b
GH-333 Use valueless_by_exception() instead of index() != std::varian…
heifner ad3336c
GH-333 Remove unneeded mark_all_invalid()
heifner a600ff1
GH-333 Replay only validated reversible blocks from forkdb
heifner 834a2b1
Merge branch 'main' into GH-333-forkdb-head
heifner add318f
GH-333 Simplify implementation
heifner 28557f1
GH-333 Fix log statement
heifner 0cb2d77
GH-333 Add additional comments. Move pending_lib_id impl to cpp file
heifner 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 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 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 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
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.
Those comments are very helpful!