fix the blockchain-wipe code to not wipe on every startup, and also to reindex after wiping