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 crosslink processing, add logs for crosslinks #4630

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GheisMohammadi
Copy link
Contributor

Issue

The leader is adding pending crosslinks without verifying them. This could break the consensus if other validators don't have the old shard state needed to verify crosslinks. This PR addresses that issue by ignoring very old crosslinks and not adding them to proposing blocks. crosslinks are today used only to calculate the reward to be distributed every 64 blocks, hence discarding those old pending crosslinks should be safe and shouldn't affect the protocol.

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.

None yet

4 participants