There is a prolonged argument about proof-of-work (PoW) versus proof-of-stake (PoS) within the cryptocurrency space. I'm so sure that both consensus has benefits alongside their limitations. How do consensus algorithms affect blockchain network security?