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

Sanity Check proposal sender from proposal messages #2344

Merged
merged 2 commits into from May 1, 2024

Conversation

nibhar
Copy link
Member

@nibhar nibhar commented Apr 3, 2024

Prior to this PR a proposal message can contain an out of bounds sender. When trying to retrieve the validator to that sender the node would panic.

This PR fixes that and adds some documentation regarding panics to the relevant function in this context.

Fixes #2322.

@nibhar nibhar added this to the Nimiq PoS Mainnet milestone Apr 3, 2024
@nibhar nibhar self-assigned this Apr 3, 2024
@nibhar nibhar force-pushed the nibhar/proposal_sender branch 2 times, most recently from 1c641b3 to 18b9c31 Compare April 3, 2024 22:50
Copy link
Contributor

@hrxi hrxi left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@hrxi
Copy link
Contributor

hrxi commented May 1, 2024

Rebasing.

@hrxi hrxi merged commit cbb72c8 into albatross May 1, 2024
6 checks passed
@hrxi hrxi deleted the nibhar/proposal_sender branch May 1, 2024 13:38
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.

Index out of bounds in ProposalSender::send
3 participants