Energy-Efficient Blockchain Consensus