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

Add lotus shed util to validate a tipset #4065

Merged
merged 3 commits into from
Sep 30, 2020
Merged

Add lotus shed util to validate a tipset #4065

merged 3 commits into from
Sep 30, 2020

Conversation

arajasek
Copy link
Contributor

No description provided.

Comment on lines 142 to 148
err = a.Syncer.ChainStore().UnmarkBlockAsValidated(ctx, blk)
if err != nil {
return false, err
}
}

err = a.Syncer.ValidateTipSet(ctx, fts)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd feel a bit better if instead of UnmarkBlockAsValidated we had some context value which we'd check in syncer.store.IsBlockValidated to disable the validation cache, especially given that this method has the read perm set

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, a 'force tipset revalidation' flow makes sense to me, rather than having it be a two step thing

@magik6k magik6k merged commit 76b1ec1 into master Sep 30, 2020
@magik6k magik6k deleted the asr/sync-validate branch September 30, 2020 07:24
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.

3 participants