Skip to content
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

[1.0.2 -> main] Don't assume that claimed block is in fork_db. #867

Merged
merged 44 commits into from
Oct 2, 2024

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Oct 2, 2024

Resolves #778 and #751.

Update fork_db_validated_block_exists to lookup parents instead of just claimed block.

Also updated the validated member in both block_state_legacy and block_state to be copyable_atomic instead of bool, which allowed to make the set_valid() and is_valid() members public, and thus eliminate a couple of friend declarations.

Also adds testcase described in issue #751.

@heifner heifner changed the base branch from main to oc_gs_warnremove_main October 2, 2024 12:11
Base automatically changed from oc_gs_warnremove_main to main October 2, 2024 15:55
@greg7mdp greg7mdp merged commit 31578a0 into main Oct 2, 2024
36 checks passed
@greg7mdp greg7mdp deleted the gh_778_main branch October 2, 2024 15:59
@ericpassmore ericpassmore added the bug The product is not working as was intended. label Oct 2, 2024
@ericpassmore
Copy link
Contributor

ericpassmore commented Oct 2, 2024

Note:start
category: Other
component: Internal
summary: Take into account that a claimed block may already be irreversible in consider_voting.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended.
Projects
None yet
4 participants