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

"invalid block" spam during state sync #12090

Open
saketh-are opened this issue Sep 14, 2024 · 0 comments
Open

"invalid block" spam during state sync #12090

saketh-are opened this issue Sep 14, 2024 · 0 comments
Assignees

Comments

@saketh-are
Copy link
Collaborator

The following error is printed repeatedly while a node is in state sync.

error!(target: "client", ?err, ?block_hash, "Received an invalid block during state sync");

The spam occurs because the node receives the new blocks from the head of the chain which are too far ahead for it to validate.

Instead of validating all received blocks, we should print the error only if the node receives a block it cares about during state sync and is unable to validate it:

/// case of a node syncing its state it is looking for 2 specific blocks:
/// * The first block of the new epoch
/// * The last block of the prev epoch
///
/// Additionally if there were missing chunks in the blocks leading to the
/// sync hash block we need to store extra blocks.

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

No branches or pull requests

1 participant