-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
copydb panic because it can't retrieve the state tree in current height - 64
block
#19266
Comments
This needs a fix in eth/downloader because copydb uses it to "fast sync" into the local database. |
I've trie to repro this, switching the pivot point back and forth. Everything seems to work, although I agree it should fail. However, I don't see why it would (yeah I know it's an old issue, sorry for not picking it up sooner) |
The command was dropped on master. We have (manual) state pruning shipped, which is better and faster. |
The behavior of copydb ( or fast sync) is to sync state tree in the block of
current height - 64
, but it seems geth don't persist state tree in the block ofcurrent height - 64
before exist (it only persistcurrent height
,current height - 1
,current height - 127
) . So copydb will panic.If I panic in copydb, I have to start geth and wait it syncing another 64 blocks and exist. Then invoke copydb again, it will work normally.
The text was updated successfully, but these errors were encountered: