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

Is there a way to revalidate the blockchain without redownloading it? #1132

Closed
amanusk opened this issue Feb 22, 2018 · 4 comments
Closed

Is there a way to revalidate the blockchain without redownloading it? #1132

amanusk opened this issue Feb 22, 2018 · 4 comments

Comments

@amanusk
Copy link
Contributor

amanusk commented Feb 22, 2018

Is there a way to perform a re-validation of the blockchain without a complete removal and download? Similar to --reindex and/or --reindex-chainstate in the reference client?

Maybe by deleting some file?

Thanks

@stevenroose
Copy link
Contributor

What scenario do you have in mind for this feature?

@amanusk
Copy link
Contributor Author

amanusk commented Feb 27, 2018

My understanding is that the reference client has this option for a case that the state was saved incorrectly or somehow got corrupted. I don't see a reason why this could not happen in this implementation (please correct me if I am wrong).

(By the way, the state is not saved in some separate directory right? Everything is saved in blocks_ffldb, both blocks data and state data?)

So currently this is not possible? Does running -txindex validate blocks?

Thanks,

@stevenroose
Copy link
Contributor

@amanusk Actually, while working on the gRPC server, I noticed there is a verifychain RPC method that might do exactly what you want. I haven't ported it to gRPC because I was not sure if it made sense. I mean, calling that method could take a week to complete, which is kinda strange, right?

@amanusk
Copy link
Contributor Author

amanusk commented Mar 17, 2018

@stevenroose Thanks for pointing this out. I'll look into it and see if this covers my needs.

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

3 participants