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(splitstore): fix a panic on revert-only head changes #6133

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

Stebalien
Copy link
Member

Calling, e.g., lotus chain sethead on an ancestor tipset won't apply any new blocks, it'll just revert a bunch. This will lead to HeadChange calls with no new blocks to apply.

fixes #6125

Calling, e.g., `lotus chain sethead` on an ancestor tipset won't apply
any new blocks, it'll just revert a bunch. This will lead to HeadChange
calls with no new blocks to apply.

fixes #6125
@Stebalien Stebalien force-pushed the fix/head-change-panic-splitstore branch from 8115816 to 63db9e1 Compare April 29, 2021 03:35
@Stebalien Stebalien requested a review from vyzo April 29, 2021 03:35
blockstore/splitstore/splitstore_test.go Outdated Show resolved Hide resolved
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
@Stebalien Stebalien merged commit 83ec2b5 into master Apr 29, 2021
@Stebalien Stebalien deleted the fix/head-change-panic-splitstore branch April 29, 2021 05:25
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.

lotus chain sethead --epoch ---> panic: runtime error: index out of range [-1]
2 participants