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

[Epoch Sync] Prevent header or block application at genesis if epoch sync is due #12564

Open
Tracked by #101 ...
robin-near opened this issue Dec 5, 2024 · 0 comments
Open
Tracked by #101 ...

Comments

@robin-near
Copy link
Contributor

Description

If we're waiting for epoch sync to happen, we should refuse any headers or blocks we receive. Otherwise, it will ruin the requirement that header_head is at genesis, making us unable to do epoch sync.

This should not happen normally (as long as the code isn't buggy to actually enter header or block sync when we should be doing epoch sync), but someone malicious can still send us headers or blocks on top of genesis to prevent us from epoch syncing.

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