I don't think it deletes the block data either? Just marking it invalid in the chainstate.
Are you sure? I thought the shutdown / restart would cause it to start up again from where it thought it was.
Let me go spin up a VM and take a look. You could be correct, it's been so long since I used it I don't remember. Only used it a few times for testing.
-Dave
Yep, just tried it again on my testnet. My instance doesn't connect to the peers anymore, probably marked the other nodes as misbehaving nodes. Debug log has this:
2020-07-14T15:11:09Z ERROR: AcceptBlockHeader: block [Block hash I marked invalid] is marked invalid
.
Anyone knows how to revert this without reindex? Nevermind, reconsiderblock did the job.