Understanding the Risks of a 51% Attack in Blockchain Technology