-
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
[1.0.2] Don't assume that claimed block is in fork_db. #788
Conversation
…assert not always true)
Note:start |
…tors are as well.
…in another branch)
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.
See #751 (comment) for the test case that works for both #751 and #778.
I think that test should be added here to demonstrate that this PR does in fact resolve the bug reported in #778 properly.
done. |
@arhag got two new approvals from Lin and Kevin. Time to merge? |
Resolves #778.
Update
fork_db_validated_block_exists
to lookup parents instead of just claimed block.Also updated the
validated
member in bothblock_state_legacy
andblock_state
to becopyable_atomic<bool>
instead ofbool
, which allowed to make theset_valid()
andis_valid()
members public, and thus eliminate a couple offriend
declarations.