Testing some behaviors on a collator, I often end-up with [🌗] Block import error: State Database error: Too many sibling blocks inserted
Is there way to remove those siblings from the database ?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityTesting some behaviors on a collator, I often end-up with [🌗] Block import error: State Database error: Too many sibling blocks inserted
Is there way to remove those siblings from the database ?
The correct way to revert the siblings is to use ./binary revert ...
Ex: polkadot revert --chain=rococo-local 1
This was not possible for parachain due to how they treat leaves and best blocks (dependant on the relaychain), but has since been fixed (see https://github.com/paritytech/substrate/pull/11716)