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

Increase validator robustness against mempool errors #2848

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

styppo
Copy link
Member

@styppo styppo commented Aug 23, 2024

Allow validators to continue block production, even after failing to construct a block from the current mempool.

Log a detailed error message when block production fails.

fb224ca adds an artificial panic to stop block production to help debug issue #2751. This should be reverted once that issue is fixed.

Copy link
Member

@nibhar nibhar left a comment

Choose a reason for hiding this comment

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

Some minor comments, but it looks good to me.

Comment on lines +31 to +33
fn accounts_error(
blockchain: &Blockchain,
error: AccountsError,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fn accounts_error(
blockchain: &Blockchain,
error: AccountsError,
fn from_accounts_error(
error: AccountsError,
blockchain: &Blockchain,

I like this better, it is not a deal breaker though.

validator/src/micro.rs Outdated Show resolved Hide resolved
validator/src/micro.rs Show resolved Hide resolved

// Add an artificial panic here so that it's easier to catch any remaining
// mempool bugs.
// TODO Remove this.
Copy link
Member

Choose a reason for hiding this comment

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

Please create an issue for this once this gets merged.

@jsdanielh jsdanielh merged commit ac7aaad into albatross Sep 2, 2024
7 checks passed
@jsdanielh jsdanielh deleted the styppo/validator branch September 2, 2024 15:40
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Sep 5, 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.

4 participants