Bitcoin Cash underwent a hard fork to upgrade network security and add a few key features, as reported by BTCManger on 15 May, 2019. The hard fork went as per plan but a bug on Bitcoin ABC’s client rendered the chain non-functional for a few hours.
Bitcoin ABC Nodes Malfunction
Bitcoin ABC, one of the top clients to run a node on the Bitcoin Cash network, ran into trouble as an attacker found a bug that could compromise the network – as a functional inefficiency, not a security flaw.
The attacker, who waited till the upgrade to test the vulnerability, flooded the network with nearly 3000 transactions, each containing a staggering 133 inputs each. Each of these transactions had roughly 15 sigops; a single MB on the Bitcoin Cash blockchain can handle up to 20,000 sigops. Simply put, these transactions ended up halting the network because the ABC client wasn’t able to process the barrage of data.
The reason for the limit is because sigops, or count on signature validity checks, are the most expensive function to perform in the entire transaction process. By exploiting this limit, the hacker was able to bring the network to a standstill and cause miners to produce single transaction blocks despite the mempool filling up. The bug was eventually fixed by a patch/revision by ex-ABC developer Amaury Sechet, also known as Deadalnix.
Electron Cash developer, u/NilacTheGrim on Reddit, has constructed a transaction that will drain all of the attacker’s P2SH wallets. The network has completed 11 blocks and automatic checkpoint is now implemented – eliminating the fear of a reorg by the unknown miner with a large amount of network hash power.