Blockchain vs. Traditional Distributed Systems: Consensus and Resilience