A consensus algorithm is a method through which all the peers of the blockchain network reach a standard agreement of the present state of a distributed ledger.
It achieves high reliability and establishes trust between unknown peers in the distributed computing environment.