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

Fetch worker key from correct block on sync #4573

Merged
merged 2 commits into from
Oct 24, 2020

Conversation

Stebalien
Copy link
Member

When syncing (via pubsub) from peers that have recently changed their worker key, we may have the wrong version cached (and/or we may have fetched it from the wrong epoch). This could cause us to mis-validate the block in the pubsub validator (either accept/reject it).

This won't cause state mismatches or forks (everything is re-checked later), but could cause nodes to propagate invalid blocks and/or refuse to propagate valid blocks.

There's no need to call TipSetState and recompute it.
We need to use the worker key from the lookback tipset state. We can't
reasonably maintain this cache, unfortunately (unless we kept some form of
"per-height" cache).
@arajasek arajasek merged commit d43bc79 into master Oct 24, 2020
@arajasek arajasek deleted the steb/remove-worker-key-cache branch October 24, 2020 03:59
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

2 participants