With data volumes expected to expand exponentially in the next years, protecting that data is critical. To ensure the reliability of the system, we use cutting-edge tools like blockchain. It wasn't until the advent of bitcoin, however, that a sizable portion of the population took notice of blockchain technology. Since its inception, blockchain technology has been used in the academic community and by businesses. What this means is that the information is being stored in a way that makes tampering and unauthorized access very difficult. Blocks, an abbreviation for "blockchain," a digital public ledger, are used to record monetary transactions. All nodes will eventually agree on the same sequence of block attachments, and this is achieved by a process termed "consensus." Learning about the inner workings of each blockchain and the rationale for its unique style of operation is possible via a thorough examination of these algorithms. In this study, I examined and contrasted the different consensus mechanisms now in use with consensus protocols, analyzing their relative relevance in blockchain development. The consensus algorithm behind any specific blockchain-based system is crucial to the reliability and safety of that system. Formal approaches may be used to both increase users' trust in blockchain-based systems and design thoroughly tested and trustworthy solutions. To achieve this level of confidence, consensus methods must be effective. Formal modeling is developing a system in a mathematical language, then thoroughly testing and inspecting it to ensure its correctness. This study examined consensus processes and the role formal approaches play in this space to help with the construction of a trustworthy blockchain-based system. To ensure the accuracy of such procedures, this article discusses the current state of applying formal methods to the blockchain consensus process.