-
Notifications
You must be signed in to change notification settings - Fork 2.7k
revert should work even for finalised blocks #1375
Comments
I looked into it, |
Deleting blocks is easy enough. Not sure if any finality records should be reverted as well. |
What I know:
|
yeah, you would have to keep history of all set changes in the finality-grandpa aux-db, which is a lot, or scan absolutely everything on reversion. And even if we can do this, it will lead to slashing once we have runtimes that know how to handle safety violations. |
I would like to fix this issue but probably I'll need some mentoring. |
@marcio-diaz : I can mentor. If we don't care about the DB state bloat for now we can just keep track of all historic signalled changes somewhere in GRANDPA and add some trait-based machinery around the |
This will add a lot of plumbing to the consensus/client layers, introducing a circular dependency which currently does not exist, so I am really wary of including something like this. As an alternative, we could introduce GRANDPA finality limits (via a There should also be a log about being unable to revert unfinalized blocks. |
The |
I'm trying this at latest Polkadot v0.9.22
it not revert finalized blocks, does the behavior changed? UPDATE: after run revert, the db seems corrupted
It can no longer sync new block |
Okey am not an expert on consensus but a the meaning of finalization is irreversible |
Addressed by #11500 |
Bump confirmation depth for dev config
Doesn't seem to want to revert the correct chain.
The text was updated successfully, but these errors were encountered: