This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow to reset the chain to a particular block #8259
Labels
F8-enhancement 🎊
An additional feature request.
M4-core ⛓
Core client code / Rust.
Q2-easy 💃
Can be fixed by copy and pasting from StackOverflow.
Milestone
Comments
tomusdrw
added
F8-enhancement 🎊
An additional feature request.
Q2-easy 💃
Can be fixed by copy and pasting from StackOverflow.
M4-core ⛓
Core client code / Rust.
labels
Mar 29, 2018
Hey,
Is there anything else I need to delete for this to work? We want to reset Parity to block 5_200_000 as we noticed no logs returned for a couple of days in blocks from a month ago. |
docs? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
F8-enhancement 🎊
An additional feature request.
M4-core ⛓
Core client code / Rust.
Q2-easy 💃
Can be fixed by copy and pasting from StackOverflow.
Re-syncing archive nodes is not always feasible nowadays. And sometimes due to bugs your DB might be missing or have incorrect values for Parity-generated data (think traces, fatdb, logs).
It should be possible (and easy) to re-sync the chain from some particular block to re-produce those values.
If I'm not mistaken, for archive nodes it's just a matter of reseting best block hash if
"best"
key ofEXTRA
column in DB.EDIT:
Seems that
sync/src/block_sync.rs
will never attempt to import blocks that are already known, so reset requires to remove hashes of all previously imported blocks as well.The text was updated successfully, but these errors were encountered: