Bitcoin-Core developer Matt Corallo has in recent times proposed a series of changes to the Bitcoin consensus code, dubbed “The Great Consensus Cleanup” in a new BIP, and submitted an associated pull request which implements the requisite code adjustments. The changes would be executed via a BIP-9 soft-fork in order to change a small proportion of consensus-related code and redecision some edge-case vulnerabilities related to validation of certain non-standard transactions, as well as a fix for the timewarp vulnerability, which impacted the Verge cryptocurrency last year. One element of the proposal suggests changes that would result in full invalidation of the non-standard OP_CODESEPARATOR opcode where used in non-BIP143 scripts. This risk was somewhat mitigated by changes in Bitcoin Core 0.16.1 in June last year, which ensured that such transactions using the potentially problematic opcode would not be relayed or mined as default. However, as the opcode vulnerability remains, a particularly motivated attacker could, in theory, make use of OP_CODESEPARATOR to roll out a form of denial-of-service attack on validating nodes and other miners, which is Corallo’s justification for moving to make these changes proactively. Issues with delays in validation can result in increasing numbers of orphaned blocks for miners, and in worse case scenarios would likely result in temporary breaks in consensus across different areas of the network. For a simple example, a Chinese miner might end up building on different blocks, if all his peers are busy validating a problematic block for over 30 minutes. This would cause a problem when the network comes back to consensus as there would be multiple concurrent blocks that would need to be orphaned to fully converge to consensus with the main, valid chain. The proposal has provoked some interesting discussion via the bitcoin-dev mailing list to dissect the trade-offs of making the changes to critical consensus code that Bitcoin relies upon. Russell O’Connor of Blockstream has responded with concerns that this could have the unintended consequence of preventing existing UTXOs being spent, if OP_CODESEPARATOR emerged as used in the construction of a P2SH address and it’s as-yet unknown redeemScript relies upon the non-standard opcode in order to spend the funds. O’Connor proposes an alternative path to the same goal through increasing the weight of transactions which utilise scripts containing the opcode, which would limit the number of such transactions that could be included in a single block, thereby limiting the risk of extreme validation times on any single block and almost entirely eliminating any serious risk from this particular vulnerability. Matt Corallo responded with his belief that no use of stated opcode has been detected on-chain, and that it is highly unlikely that anyone has moved funds into such an “esoteric” construction, without ever bothering to pull them out, even as a test (the only way such a transaction can be detected is when it is spent). That stated, Corallo did make a point of requesting that anyone reading who has used such non-standard transaction schemes should get in contact with the Bitcoin Core development team as a matter of priority. The risk of a timewarp attack is mitigated by adding a rule which ensures that the first block after a difficulty retarget must have a timestamp which is no earlier than 600 seconds before the previous block. This opcode is associated with a risk of attack due to its link to increased worst-case validation times, wherein an attacker could theoretically produce a block which would take up to 30 minutes to validate even on fast, modern hardware. The Bitcoin Optech newsletter last week outlined the proposal in greater detail, and includes a fantastic background of the specifics of both the legacy transaction validation and the time-warp attack involved with these edge case issues.
Bitcoin Core Developer Matt Corallo Proposes "The Great Consensus Cleanup"
Bitcoin-Core developer Matt Corallo has recently proposed a series of changes to the Bitcoin...

Key Points
- Bitcoin-Core developer Matt Corallo has recently proposed a series of changes to the Bitcoin...
MiningPool content is intended for information and educational purposes only and does not constitute financial, investment, or legal advice.
Advertisement
728×90
Related Stories

Bitcoin Mining Difficulty Fell 10.09% at Block 953,568 Last Sunday — the Second-Biggest Cut of 2026 and the Eleventh-Largest in the Network's History
Bitcoin difficulty dropped from 138.96T to 124.93T at block 953,568 on June 14, the second-largest negative adjustment of the year. Hashrate is down 12% in a month to 886 EH/s, and the marginal kilowatt is increasingly being sold to AI hyperscalers instead.

Bitcoin Recovered to $77,000 on Saturday After Trump Said the Iran Peace Memorandum Was "Largely Negotiated" — $180 Million in Shorts Were Liquidated in 30 Minutes
Bitcoin bounced from a $74,192 low to $77,000 on May 23 after the US president said a memorandum of understanding with Tehran was close to signing and the Strait of Hormuz would reopen. Short sellers caught the worst of the reversal.

SpaceX Disclosed 18,712 Bitcoin in Its S-1 — Worth $1.45 Billion and Untouched Since 2024
SpaceX's IPO filing this week confirmed 18,712 BTC sitting on the balance sheet at a cost basis of $661 million — more than double what on-chain analysts had estimated, and untouched since 2024.

Iran's Ministry of Economy Launched a Bitcoin-Settled Insurance Scheme for Strait of Hormuz Cargo on May 16 — and the State Wants Ten Billion Dollars a Year From It
Iran's new Hormuz Safe platform offers cryptographically verified insurance certificates against vessel inspection, detention and confiscation — payable in bitcoin. The revenue target is $10 billion a year. CoinDesk and Bloomberg cannot confirm that a single policy has actually been sold.

Bitcoin Briefly Cleared $80,000 for the First Time Since January — Then a Missile Report Near Jask Knocked It Back to $79,000
Bitcoin's first push above $80,000 since January lasted only hours. A report by Iran's Fars news agency that two Iranian missiles had hit a US patrol boat near the Strait of Hormuz reversed the move; CENTCOM denied any ship was hit, but the price still hasn't recovered.

Strategy Overtakes BlackRock as World's Largest Institutional Bitcoin Holder After $2.54 Billion Purchase
Michael Saylor's Strategy bought 34,164 bitcoin last week for $2.54 billion, vaulting past BlackRock's iShares Bitcoin Trust to become the largest institutional holder of the cryptocurrency.
Stay informed
Verifiable crypto journalism, delivered to your inbox.
Weekday mornings. No hype. No financial advice. Just what happened and why it matters.
No spam. Unsubscribe anytime. Read our privacy policy.
