{"id":12440,"date":"2022-03-02T14:29:00","date_gmt":"2022-03-02T14:29:00","guid":{"rendered":"https:\/\/hederav2stg.wpenginepowered.com\/learning\/understanding-leader-based-consensus-algorithms\/"},"modified":"2025-12-10T16:25:03","modified_gmt":"2025-12-10T16:25:03","slug":"understanding-leader-based-consensus-algorithms","status":"publish","type":"learning","link":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/","title":{"rendered":"Understanding leader-based consensus algorithms"},"content":{"rendered":"<p>Some <strong>distributed ledger technologies<\/strong> use leader-based consensus algorithms. Although this consensus mechanism is used in a variety of ways, it presents problems with security and fairness.<\/p>\n<h3><strong>What are leader-based consensus algorithms used for?<\/strong><\/h3>\n<p dir=\"ltr\">Leader-based consensus algorithms are commonly employed in distributed systems where multiple nodes must agree on a single, consistent state. A typical use case involves transaction ordering in high-throughput environments where concurrent requests for the same resource must be resolved deterministically.<\/p>\n<p dir=\"ltr\">The consensus mechanism ensures that when multiple clients attempt to access or modify the same data simultaneously, only one request succeeds, preventing conflicts such as double-spending or duplicate resource allocation.<\/p>\n<p dir=\"ltr\">With a leader-based DLT, the network uses a <strong>leader election<\/strong> process to decide on a lead computer or node. Every participant sends its transactions to the leader and then the leader sends out a signal: Here&#8217;s the order the transactions need to be in. Or the leader sends out a block that has those transactions in that order, and it&#8217;s added to the chain.<\/p>\n<p dir=\"ltr\">A more traditional <strong>consensus mechanism<\/strong> is to use rounds of votes to reach a consensus on how a transaction should be decided, based on Byzantine fault tolerance and the security it provides against malfunctioning Byzantine nodes.<\/p>\n<p dir=\"ltr\">However leader-based systems, as the name implies, use a leader node or computer to make final decisions on transactions. <strong>Proof of work<\/strong>, the backbone of Bitcoin, is an example of a leader-based system.<\/p>\n<h3><strong>Flaws in leader-based consensus algorithms<\/strong><\/h3>\n<p dir=\"ltr\">The problem with <a href=\"https:\/\/www.youtube.com\/watch?v=hVYRkcTY840&amp;list=PLcaTa5RR9SuCQC71q8nqIOAsY8vJssQIY&amp;index=9\" target=\"_blank\" rel=\"noopener\">leader-based consensus protocols<\/a> is that they are <strong>vulnerable to DDoS attacks<\/strong>. A Distributed Denial of Service attack, in which many computers flood one computer with packets, can crash a leader.<\/p>\n<p dir=\"ltr\">Of course, leader-based systems are designed so that if the leader goes silent for a certain period of time, the network figures that the leader computer has crashed and switches to <strong>a new leader<\/strong>.<\/p>\n<p dir=\"ltr\">However, if one computer is infected with a virus or a worm, or is malicious or compromised, that one computer will detect the new leader and direct the attack to it. In this way, a botnet can play <strong>follow the leader<\/strong> and keep the leader shut down all the time.<\/p>\n<p dir=\"ltr\">Some systems that don&#8217;t appear to be leader based are so \u2013 in effect. They are subject to some of the same problems. In a database, <strong>two-phase commit<\/strong> is actually a kind of leader-based system. When a system, such as two-phase commit, has a lock that requires a participant to obtain the lock so it can make a change and then release a lock, that system is leader based.<\/p>\n<p dir=\"ltr\"><strong>If there is a crash<\/strong> while someone is holding the lock, there&#8217;s a problem. A DDoS attack can focus on whoever is holding the lock, which causes problems.<\/p>\n<p dir=\"ltr\">Any system is leader based if the community votes for several leaders to take turns, switching every two seconds. A DDoS can follow the leader with every switch.<\/p>\n<p dir=\"ltr\">In addition to the security flaws, leader-based consensus algorithms have fairness issues.<\/p>\n<h3><strong>Fairness issues in leader-based systems<\/strong><\/h3>\n<p dir=\"ltr\">The leader in these distributed systems can <strong>control the order <\/strong>in which transactions are placed. So, maybe in a stock market one party bribes the leader to put its transactions ahead of a rival&#8217;s. <strong>Unethical stock brokers<\/strong> would pay millions of dollars to have that happen even 1 percent of the time.<\/p>\n<p dir=\"ltr\"><strong>Fairness of access<\/strong> is another serious problem. One party could bribe the leader to not even put a rival&#8217;s transaction into the block. That second participant would have to wait for a new leader to get access. However, what if several leaders in a row get bribed?<\/p>\n<p dir=\"ltr\">These consensus algorithms also present concerns over <strong>fairness of timestamps<\/strong>. The leader might, through some glitch, put inaccurate timestamps on transactions. A compromised leader might put bad timestamps on transactions on purpose.<\/p>\n<p dir=\"ltr\">Ideally, the <a href=\"https:\/\/hedera.com\/learning\/what-is-hashgraph-consensus\" target=\"_blank\" rel=\"noopener\">entire community<\/a> puts timestamps on transactions as they are received. <strong>They all weigh<\/strong> in and combine to give a single timestamp. Leader-based systems, however, don&#8217;t allow that. Typically that all comes down to the leader.<\/p>\n<p dir=\"ltr\">Putting so much pressure on one point in the network makes leader-based consensus algorithms vulnerable to problems of security and fairness.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some distributed ledger technologies use leader-based consensus algorithms. Although this consensus mechanism is used in a variety of ways, it presents problems with security and fairness. What are leader-based consensus algorithms used for? Leader-based consensus algorithms are commonly employed in distributed systems where multiple nodes must agree on a single, consistent state. A typical use [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"template":"","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"tags":[31],"class_list":["post-12440","learning","type-learning","status-publish","hentry","tag-consensus"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding leader-based consensus algorithms | Hedera<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding leader-based consensus algorithms | Hedera\" \/>\n<meta property=\"og:description\" content=\"Some distributed ledger technologies use leader-based consensus algorithms. Although this consensus mechanism is used in a variety of ways, it presents problems with security and fairness. What are leader-based consensus algorithms used for? Leader-based consensus algorithms are commonly employed in distributed systems where multiple nodes must agree on a single, consistent state. A typical use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/\" \/>\n<meta property=\"og:site_name\" content=\"Hedera\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-10T16:25:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/HH60178_OGHederaSite_V2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/\",\"url\":\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/\",\"name\":\"Understanding leader-based consensus algorithms | Hedera\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/#website\"},\"datePublished\":\"2022-03-02T14:29:00+00:00\",\"dateModified\":\"2025-12-10T16:25:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hedera.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding leader-based consensus algorithms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hedera.com\/#website\",\"url\":\"https:\/\/hedera.com\/\",\"name\":\"Hedera\",\"description\":\"Hello future\",\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hedera.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hedera.com\/#organization\",\"name\":\"Hedera\",\"url\":\"https:\/\/hedera.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"width\":500,\"height\":375,\"caption\":\"Hedera\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding leader-based consensus algorithms | Hedera","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/","og_locale":"en_US","og_type":"article","og_title":"Understanding leader-based consensus algorithms | Hedera","og_description":"Some distributed ledger technologies use leader-based consensus algorithms. Although this consensus mechanism is used in a variety of ways, it presents problems with security and fairness. What are leader-based consensus algorithms used for? Leader-based consensus algorithms are commonly employed in distributed systems where multiple nodes must agree on a single, consistent state. A typical use [&hellip;]","og_url":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/","og_site_name":"Hedera","article_modified_time":"2025-12-10T16:25:03+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/HH60178_OGHederaSite_V2.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/","url":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/","name":"Understanding leader-based consensus algorithms | Hedera","isPartOf":{"@id":"https:\/\/hedera.com\/#website"},"datePublished":"2022-03-02T14:29:00+00:00","dateModified":"2025-12-10T16:25:03+00:00","breadcrumb":{"@id":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hedera.com\/learning\/understanding-leader-based-consensus-algorithms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hedera.com\/"},{"@type":"ListItem","position":2,"name":"Understanding leader-based consensus algorithms"}]},{"@type":"WebSite","@id":"https:\/\/hedera.com\/#website","url":"https:\/\/hedera.com\/","name":"Hedera","description":"Hello future","publisher":{"@id":"https:\/\/hedera.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hedera.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hedera.com\/#organization","name":"Hedera","url":"https:\/\/hedera.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","width":500,"height":375,"caption":"Hedera"},"image":{"@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/learning\/12440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/learning"}],"about":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/types\/learning"}],"author":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/users\/4"}],"version-history":[{"count":0,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/learning\/12440\/revisions"}],"wp:attachment":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media?parent=12440"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/tags?post=12440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}