{"id":107071,"date":"2023-05-25T16:58:02","date_gmt":"2023-05-25T16:58:02","guid":{"rendered":"https:\/\/www.dash.org\/?p=107071"},"modified":"2023-05-25T16:58:02","modified_gmt":"2023-05-25T16:58:02","slug":"dash-network-update","status":"publish","type":"post","link":"https:\/\/www.dash.org\/blog\/dash-network-update\/","title":{"rendered":"Dash Network Update"},"content":{"rendered":"

On May 22, 2023, the Dash network faced an unexpected disruption due to a glitch during the activation of version 19.0.0 at block 1,874,880. The network was stalled for roughly 16 hours, which marks the first outage since approximately 2015. Many have speculated on the origin of the issue. This post aims to put the speculation at bay as we report our findings.<\/span><\/p>\n

TL;DR<\/b>: The issue was related to the upgrade of our BLS scheme from a non-standard scheme to a new standard scheme used by the industry. It is worth noting that when we introduced BLS threshold cryptography to our network in 2018 there was no defined standard. This upgrade is vital on our path to inter-blockchain communication.<\/span><\/p>\n

More in-depth explanation below.<\/span><\/p>\n

<\/p>\n

Immediate response and investigation<\/span><\/h2>\n

On May 22, 2023, at precisely 04:13 UTC, the Dash network encountered an unexpected interruption during the v19 activation. The issue caused a chain halt, preventing the production of new blocks following the main consensus rules. Within minutes, at 04:18 UTC, we detected the anomaly and began our investigations.<\/span><\/p>\n

Within an hour, at approximately 05:04 UTC, we successfully identified the problematic block. As the team delved deeper into the root cause, we initially thought by 06:45 UTC that the disruption was related to an unusual occurrence while processing a special transaction; however, this turned out to be incorrect. Our theory at that point centered around the BLS signature scheme update meant to transition our system to the new IETF specification. This part of our theory was true.<\/span><\/p>\n

By 07:24 UTC, our engineers started to hone in on how the BLS update might be interacting with the masternode list to create an issue. Over the following two hours, we developed and tested numerous builds as analysis of the BLS implementation continued. One notable clue from this was the system\u2019s unsuccessful attempt to eliminate certain masternodes, as it failed to locate them in the masternode list using their BLS operator key.<\/span><\/p>\n

At 10:05 UTC, we briefly discussed whether to release a new version that would delay v19 activation or continue attempting to create a patch to resolve the issue. A decision was made to continue troubleshooting in hopes of identifying the solution quickly. The team then tested several patches that provided additional details but not a solution.<\/span><\/p>\n

Around 11:00 UTC, we further traced the problem to a failure to apply masternode diffs properly. Having validated that some earlier theories were on the right track but not knowing the exact root cause, the team attempted a fix that briefly showed some promise. At 11:37 UTC, we noticed that some nodes were seeing blocks and decided to figure out how to get all nodes to follow.\u00a0<\/span><\/p>\n

Divide and conquer<\/span><\/h2>\n

After observing at 12:34 UTC that not all nodes followed the new chain even if re-indexed, it was probable that we were experiencing a non-determinism issue and the advancing chain was non-viable. Our team made multiple attempts to find a way around this unidentified source of non-determinism. However, ultimately the majority of the network was not following this chain as its blocks contravened consensus rules, leading to their rejection by many nodes.<\/span><\/p>\n

Faced with that challenge, the team divided efforts in case a patch to resolve the original problem wasn\u2019t practical for time or complexity reasons. One group focused on fully identifying and fixing the root issue. A second team worked on creating a new release that would postpone v19 activation which would allow the network to recover more quickly. As the team working on a complete fix proceeded, team members continued getting divergent and inconsistent results.<\/span><\/p>\n

By 13:54 UTC, we had a patch to delay v19 activation, and v19.1 was ready to start the building process about an hour later. At 16:40 UTC, only 12 hours after the initial interruption, we decided to release the v19.1.0 hotfix, and our CTO, Samuel Westrich, announced this shortly thereafter. This patch temporarily deactivated the v19 hard fork rules, allowing the network to continue the chain and buying us more time for a permanent fix.<\/span><\/p>\n

Root cause<\/span><\/h2>\n

Our parallel efforts also yielded results at 18:00 UTC as we identified the primary root cause. A section of code that periodically creates masternode list diffs (ApplyDiff) was searching the masternode list by operator key based on the active BLS scheme. Although the v19 hard fork activation changed the active scheme from legacy to basic, some masternode updates or deletions captured by ApplyDiff happened under the legacy scheme. Therefore, the system could not locate the masternodes properly, resulting in this issue.\u00a0<\/span><\/p>\n

Although this issue only became evident in the first block when v19 activated, it occurred due to activity in the preceding 576 blocks. Any updated or deleted masternode in that period would have triggered this issue. It is worth noting that a BLS scheme migration is done at the activation block, so any future updates or deletions would not have experienced this issue.<\/span><\/p>\n

We would also like to highlight the complexity of the issue to less technically inclined readers. Figuring it out in such a short time frame was a testament to the dedication of the team, many who had been operating in very stressful conditions for an extended period. By the time the underlying issue was discovered, the team was not in a position to safely write and deploy a complete fix in a timeline that would have been acceptable to the network. At the same time v19.1.0 had already been released and we all agreed that getting our network running again was paramount.<\/span><\/p>\n

Back in business<\/span><\/h2>\n

At 19:53 UTC, less than 16 hours from the initial incident, the Dash network resumed producing blocks from the last block with a ChainLock (height: 1874879, hash: 0000000000000013cdc708723f111c6d34effd9ea663e62eaaa5c9ff299800cb). Community members and team members alike jumped in quickly to get nodes updated and provide support to anyone encountering issues during the transition. By May 24, 2023, stability had been restored, with around 80% of the network updated to v19.1.0.\u00a0<\/span><\/p>\n

Moving ahead<\/span><\/h2>\n

While operating under very stressful circumstances, there was some internal miscommunication regarding the new activation date for the v19 hard fork. Some previous communication mentioned June 14 as the v19 activation date; however, the patch provided in Dash Core v19.1.0 changed the <\/span>start time<\/span><\/i> of the v19 activation process to June 14. This results in the earliest activation being on July 6 after completing the typical lock-in period. The <\/span>v19.1.0 release notes<\/span><\/a> communicated a start date on June 14th with the earliest activation being 2 weeks later.<\/span><\/p>\n

In further news, we are pleased to announce that we are beginning to test a resolution for the uncovered issue as of tomorrow. This fix, set to be included in v19.2.0 prior to activation, will necessitate a mandatory upgrade. Once we have established confidence in the robustness and effectiveness of this solution, we plan to consult the community about the potential of expediting the activation date.<\/span><\/p>\n

This step will enable us to ensure your voice is heard and that we move forward together. As we continue working tirelessly to serve the Dash project, we remain committed to transparency, reliability, and the growth of the Dash network.<\/span><\/p>\n

 <\/p>\n

Samuel Westrich<\/span><\/em><\/p>\n

CTO, Dash Core Group<\/span><\/em><\/p>\n

 <\/p>\n

ThePhez<\/span><\/em><\/p>\n

Head of Documentation, Dash Core Group<\/span><\/em><\/p>\n

 <\/p>\n

On behalf of the Dash Core Team<\/span><\/em><\/p>\n


<\/p>\n","protected":false},"excerpt":{"rendered":"On May 22, 2023, the Dash network faced an unexpected disruption due to a glitch during the activation of version 19.0.0 at block 1,874,880. The network was stalled for roughly 16 hours, which marks the first outage since approximately 2015. Many have speculated on the origin of the issue. This post aims to put the…","protected":false},"author":50,"featured_media":107072,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[290],"tags":[292],"acf":[],"yoast_head":"\nDash Network Update - Dash<\/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:\/\/www.dash.org\/blog\/dash-network-update\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dash Network Update - Dash\" \/>\n<meta property=\"og:description\" content=\"On May 22, 2023, the Dash network faced an unexpected disruption due to a glitch during the activation of version 19.0.0 at block 1,874,880. The network was stalled for roughly 16 hours, which marks the first outage since approximately 2015. Many have speculated on the origin of the issue. This post aims to put the...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dash.org\/blog\/dash-network-update\/\" \/>\n<meta property=\"og:site_name\" content=\"Dash\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DashPay\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-25T16:58:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Samuel Westrich\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dashpay\" \/>\n<meta name=\"twitter:site\" content=\"@dashpay\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Samuel Westrich\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/\"},\"author\":{\"name\":\"Samuel Westrich\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/691aeea2ff5b05f9b8a8467b7df56e17\"},\"headline\":\"Dash Network Update\",\"datePublished\":\"2023-05-25T16:58:02+00:00\",\"dateModified\":\"2023-05-25T16:58:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/\"},\"wordCount\":1194,\"publisher\":{\"@id\":\"https:\/\/www.dash.org\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg\",\"keywords\":[\"#DashCoreGroup\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/\",\"url\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/\",\"name\":\"Dash Network Update - Dash\",\"isPartOf\":{\"@id\":\"https:\/\/www.dash.org\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg\",\"datePublished\":\"2023-05-25T16:58:02+00:00\",\"dateModified\":\"2023-05-25T16:58:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dash.org\/blog\/dash-network-update\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage\",\"url\":\"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg\",\"contentUrl\":\"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg\",\"width\":1920,\"height\":1280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dash.org\/blog\/dash-network-update\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dash.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dash Network Update\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dash.org\/#website\",\"url\":\"https:\/\/www.dash.org\/\",\"name\":\"Dash\",\"description\":\"Dash is Digital Cash You Can Spend Anywhere\",\"publisher\":{\"@id\":\"https:\/\/www.dash.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dash.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dash.org\/#organization\",\"name\":\"Dash\",\"url\":\"https:\/\/www.dash.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png\",\"contentUrl\":\"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png\",\"width\":500,\"height\":500,\"caption\":\"Dash\"},\"image\":{\"@id\":\"https:\/\/www.dash.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/DashPay\",\"https:\/\/twitter.com\/dashpay\",\"https:\/\/www.instagram.com\/dashpay\",\"https:\/\/www.linkedin.com\/company\/10424093\",\"https:\/\/www.pinterest.com\/dashdigitalcash\",\"https:\/\/www.youtube.com\/c\/DashOrg\",\"https:\/\/en.wikipedia.org\/wiki\/Dash_cryptocurrency\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/691aeea2ff5b05f9b8a8467b7df56e17\",\"name\":\"Samuel Westrich\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/942988dc3fdab8c0cb3000b49e3e6e2a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/942988dc3fdab8c0cb3000b49e3e6e2a?s=96&d=mm&r=g\",\"caption\":\"Samuel Westrich\"},\"url\":\"https:\/\/www.dash.org\/author\/samuel-westrich\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dash Network Update - Dash","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:\/\/www.dash.org\/blog\/dash-network-update\/","og_locale":"en_US","og_type":"article","og_title":"Dash Network Update - Dash","og_description":"On May 22, 2023, the Dash network faced an unexpected disruption due to a glitch during the activation of version 19.0.0 at block 1,874,880. The network was stalled for roughly 16 hours, which marks the first outage since approximately 2015. Many have speculated on the origin of the issue. This post aims to put the...","og_url":"https:\/\/www.dash.org\/blog\/dash-network-update\/","og_site_name":"Dash","article_publisher":"https:\/\/www.facebook.com\/DashPay","article_published_time":"2023-05-25T16:58:02+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg","type":"image\/jpeg"}],"author":"Samuel Westrich","twitter_card":"summary_large_image","twitter_creator":"@dashpay","twitter_site":"@dashpay","twitter_misc":{"Written by":"Samuel Westrich","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#article","isPartOf":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/"},"author":{"name":"Samuel Westrich","@id":"https:\/\/www.dash.org\/#\/schema\/person\/691aeea2ff5b05f9b8a8467b7df56e17"},"headline":"Dash Network Update","datePublished":"2023-05-25T16:58:02+00:00","dateModified":"2023-05-25T16:58:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/"},"wordCount":1194,"publisher":{"@id":"https:\/\/www.dash.org\/#organization"},"image":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage"},"thumbnailUrl":"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg","keywords":["#DashCoreGroup"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/","url":"https:\/\/www.dash.org\/blog\/dash-network-update\/","name":"Dash Network Update - Dash","isPartOf":{"@id":"https:\/\/www.dash.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage"},"image":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage"},"thumbnailUrl":"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg","datePublished":"2023-05-25T16:58:02+00:00","dateModified":"2023-05-25T16:58:02+00:00","breadcrumb":{"@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dash.org\/blog\/dash-network-update\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#primaryimage","url":"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg","contentUrl":"https:\/\/media.dash.org\/wp-content\/uploads\/shutterstock_22441824611.jpg","width":1920,"height":1280},{"@type":"BreadcrumbList","@id":"https:\/\/www.dash.org\/blog\/dash-network-update\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dash.org\/"},{"@type":"ListItem","position":2,"name":"Dash Network Update"}]},{"@type":"WebSite","@id":"https:\/\/www.dash.org\/#website","url":"https:\/\/www.dash.org\/","name":"Dash","description":"Dash is Digital Cash You Can Spend Anywhere","publisher":{"@id":"https:\/\/www.dash.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dash.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dash.org\/#organization","name":"Dash","url":"https:\/\/www.dash.org\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dash.org\/#\/schema\/logo\/image\/","url":"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png","contentUrl":"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png","width":500,"height":500,"caption":"Dash"},"image":{"@id":"https:\/\/www.dash.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DashPay","https:\/\/twitter.com\/dashpay","https:\/\/www.instagram.com\/dashpay","https:\/\/www.linkedin.com\/company\/10424093","https:\/\/www.pinterest.com\/dashdigitalcash","https:\/\/www.youtube.com\/c\/DashOrg","https:\/\/en.wikipedia.org\/wiki\/Dash_cryptocurrency"]},{"@type":"Person","@id":"https:\/\/www.dash.org\/#\/schema\/person\/691aeea2ff5b05f9b8a8467b7df56e17","name":"Samuel Westrich","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dash.org\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/942988dc3fdab8c0cb3000b49e3e6e2a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/942988dc3fdab8c0cb3000b49e3e6e2a?s=96&d=mm&r=g","caption":"Samuel Westrich"},"url":"https:\/\/www.dash.org\/author\/samuel-westrich\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/107071"}],"collection":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/comments?post=107071"}],"version-history":[{"count":1,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/107071\/revisions"}],"predecessor-version":[{"id":107093,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/107071\/revisions\/107093"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/media\/107072"}],"wp:attachment":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/media?parent=107071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/categories?post=107071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/tags?post=107071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}