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

Fix staker crash on invalidateblock #1741

Merged
merged 3 commits into from
Feb 8, 2023
Merged

Fix staker crash on invalidateblock #1741

merged 3 commits into from
Feb 8, 2023

Conversation

Bushstar
Copy link
Member

@Bushstar Bushstar commented Feb 8, 2023

During invalidateblock a staker might find a block and during validation of the block the node could crash trying to access a block that is no longer part of the chain. This PR checks that the block index is not a null pointer before trying to access it.

Fixes: #1737

@prasannavl prasannavl mentioned this pull request Feb 9, 2023
19 tasks
@Bushstar Bushstar merged commit 0f8cf34 into master Feb 8, 2023
@Bushstar Bushstar deleted the fix-rollback-crash branch February 8, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SegFault on invalidate block on staking node
2 participants