-reindex
and -reindex-chainstate
will delete the snapshot chainstate.
This doesn’t work currently, instead of deleting the snapshot chainstate the node crashes with an assert (this can be triggered by applying the added test commit on master).
Fix this, and another bug that would prevent the new active chainstate from having a mempool after -reindex
has deleted the snapshot (also covered by the test).