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 "cache state must exist" panic in validator-network #2561

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

hrxi
Copy link
Contributor

@hrxi hrxi commented Jun 5, 2024

Fixes #2546.

Previously, an entry of type CacheState::InProgress(..) would get dropped when setting new validator keys. This must not happen since the resolving thread expects to find that once it's done.

@hrxi hrxi force-pushed the hrxi/validator_peer_id_cache_unreachable branch from b46f94d to 91987f3 Compare June 5, 2024 15:21
@viquezclaudio
Copy link
Member

I verified the panic was gone with this fix

Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

hrxi added 2 commits June 11, 2024 17:32
Fixes #2546.

Previously, an entry of type `CacheState::InProgress(..)` would get
dropped when setting new validator keys. This must not happen since the
resolving thread expects to find that once it's done.
@jsdanielh jsdanielh force-pushed the hrxi/validator_peer_id_cache_unreachable branch from 91987f3 to 14c8528 Compare June 11, 2024 14:32
@jsdanielh jsdanielh merged commit 14c8528 into albatross Jun 11, 2024
7 checks passed
@jsdanielh jsdanielh deleted the hrxi/validator_peer_id_cache_unreachable branch June 11, 2024 15:24
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Jun 12, 2024
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.

Panic in validator-network: cache state must exist
3 participants