Consensus Mechanisms Analysis: A Remedy for the Byzantine Generals Problem