-
Notifications
You must be signed in to change notification settings - Fork 72
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
IF: Consider voting immediately if final on strong qc is validated #2290
Merged
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
linh2931
approved these changes
Mar 6, 2024
greg7mdp
requested changes
Mar 6, 2024
Note:start |
…claim). Fixed qc choice logic to use parent
…e already voted.
…en the two calls
greg7mdp
approved these changes
Mar 10, 2024
linh2931
approved these changes
Mar 11, 2024
This was referenced May 15, 2024
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.
Consider voting immediately on a block if its final on strong qc block reference has been validated. The block does not necessarily need to be on our head branch as long as we have validated it.
The voting uncovered a number of problems that are fixed by this PR:
parent.is_needed()
check of best qc inassemble_block
was not correctly comparing the qc claim. Add ato_qc_claim
to qc to make creating a qc claim from a qc easy.pending_head
nothead
.net_plugin
issues uncovered by faster switching enabled by the fork switch fix.lib
ofirreversible
signal as the fork db is not updated until after the signal is emitted.sync_recv_block
to passtrue
instead offalse
. The fast fork switching in tests exposed this issue. The blocks would be added to the fork database and fork switched out before they could be applied.trx_finality_status_forked_test.py
. It is very difficult to catch a transaction in the forked-out state as fork switching is happing very rapidly with the fork switching as a result of blocks added to the fork database directly. This is true not just for instant finality but also for legacy consensus.Also:
proposal_ref
toblock_ref
proosal_id
toblock_id
Resolves #2125