Goldilock: Saving cryptocurrencies from itself