Bitcoin Core Developer Matt Corallo Proposes “The Great Consensus Cleanup”

Bitcoin Core Banner

Bitcoin-Core developer Matt Corallo has recently 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 remove 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 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. 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 launch 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 important 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 has been 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 said 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 said, 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. 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” 1
About the author

E-Crypto News was developed to assist all cryptocurrency investors in developing profitable cryptocurrency portfolios through the provision of timely and much-needed information. Investments in cryptocurrency require a level of detail, sensitivity, and accuracy that isn’t required in any other market and as such, we’ve developed our databases to help fill in information gaps.

Related Posts

E-Crypto News Executive Interviews



bitcoin
Bitcoin (BTC) $ 42,318.00
ethereum
Ethereum (ETH) $ 2,928.83
tether
Tether (USDT) $ 1.00
cardano
Cardano (ADA) $ 2.14
binance-coin
Binance Coin (BNB) $ 336.55
xrp
XRP (XRP) $ 0.928387
solana
Solana (SOL) $ 136.21
usd-coin
USD Coin (USDC) $ 1.00
polkadot
Polkadot (DOT) $ 27.67
dogecoin
Dogecoin (DOGE) $ 0.200992
USD
EUR
GBP
bitcoinBitcoin (BTC)
$ 42,318.00
ethereumEthereum (ETH)
$ 2,928.83
tetherTether (USDT)
$ 1.00
bitcoin-cashBitcoin Cash (BCH)
$ 489.39
litecoinLitecoin (LTC)
$ 145.00
bitcoinBitcoin (BTC)
36.107,20
ethereumEthereum (ETH)
2.498,98
tetherTether (USDT)
0,853235
bitcoin-cashBitcoin Cash (BCH)
417,56
litecoinLitecoin (LTC)
123,72
bitcoinBitcoin (BTC)
30,922.91
ethereumEthereum (ETH)
2,140.18
tetherTether (USDT)
0.730727
bitcoin-cashBitcoin Cash (BCH)
357.61
litecoinLitecoin (LTC)
105.96

Automated trading with HaasBot Crypto Trading Bots

Crypto Scams

Crypto Scams
Crypto Scams Still Persistent In 2021, SEC Warns About Red Flags To Watch
September 9, 2021
Poly Network
Here’s How Hackers Stole Over $600 million in the Poly Network Attack
August 12, 2021
The World’s Most Infamous Crypto Hacks and Scams
July 31, 2021
Cryptocurrency Exchanges
Cryptocurrency Exchanges and the Plague of Scams and Bans
June 29, 2021
What Role Do Cryptocurrencies Play In The Era Of Ransomware Attacks?
June 9, 2021

Blockchain/Cryptocurrency Questions and Answers

Beginner’s Guide to Investing in Cryptocurrency
August 9, 2021
Short-Sell Cryptocurrency
How to Short-Sell Cryptocurrency: A Brief Overview
July 17, 2021
Klaytn
What Is Klaytn (KLAY) And How Does It Work?
July 16, 2021
Cryptocurrencies
Our Crypto Roundup Interview Asks- Do Cryptocurrencies Have a Future?
July 15, 2021
Solana
What Is Solana (SOL) And How Does It Work?
June 26, 2021


CryptoCurrencyUSDChange 1hChange 24hChange 7d
Bitcoin42,496 0.09 % 4.26 % 1.02 %
Ethereum2,950.8 0.07 % 6.81 % 0.89 %
Tether0.9986 0.03 % 0.08 % 0.23 %
Cardano2.150 0.08 % 4.99 % 3.44 %
Binance Coin337.04 0.62 % 5.17 % 7.38 %
XRP0.9362 0.48 % 4.32 % 1.54 %
Solana136.65 1.13 % 3.64 % 2.46 %
USD Coin1.000 0.13 % 0.23 % 0.87 %
Polkadot30.87 2.19 % 17.29 % 10.73 %
Dogecoin0.2020 0.18 % 3.62 % 2.75 %

bitcoin
Bitcoin (BTC) $ 42,318.00
ethereum
Ethereum (ETH) $ 2,928.83
tether
Tether (USDT) $ 1.00
cardano
Cardano (ADA) $ 2.14
binance-coin
Binance Coin (BNB) $ 336.55
xrp
XRP (XRP) $ 0.928387
solana
Solana (SOL) $ 136.21
usd-coin
USD Coin (USDC) $ 1.00
polkadot
Polkadot (DOT) $ 27.67
dogecoin
Dogecoin (DOGE) $ 0.200992