For a particular need I need to restart with the chain from a specific previous block.
I thought about using the invalidateblock command, but it's a bitcoin-cli command and if I run it on bitcoind it replies with an error and doesn't execute it.
How can I invalidate a block on bitcoind, or how can I restart from a specific block on bitcoind?