Rare Bitcoin repeat transactions reveal early system flaws and their geometric impact on the future.

Duplicate Transactions in Bitcoin: A Rare but Interesting Technical Flaw

There are two identical transactions in the Bitcoin network, which is caused by a technical flaw in the early Bitcoin system. This situation is possible because coinbase transactions have no transaction inputs and directly generate new Bitcoins. Therefore, two different coinbase transactions may send the same amount of coins to the same address and be constructed in exactly the same way, resulting in completely identical transactions.

Bitcoin Repeated Transactions: An Interesting Bug with Minimal Risk

These two sets of duplicate transactions occurred in mid-November 2010, with a time span of about 16 hours. The first set of duplicate transactions is sandwiched between the second set. We categorize the transaction with the ID starting with d5d2 and ending with 8599 as the first duplicate transaction because it became a copy first, although strangely, it first appeared on the blockchain after another duplicate transaction.

These duplicate transactions each involve 50 BTC, totaling 200 BTC. However, from a certain perspective, 100 BTC of that actually does not exist. As of now, none of these 200 BTC have been used. Theoretically, if someone has the private keys associated with these outputs, they could use these Bitcoins. But once used, the duplicate 50 BTC will be irretrievably lost, meaning that in reality, only 100 BTC may be recoverable.

Bitcoin's Duplicate Transactions: A Low-Risk Interesting Bug

Duplicate transactions can clearly cause confusion for wallets and block explorers, and it may also obscure the source of Bitcoin. It can also introduce some potential attack and vulnerability risks. For example, an attacker could pay someone twice with two duplicate transactions, but in reality, the recipient can only recover half of the funds.

To address this issue, Bitcoin developers proposed and implemented the BIP30 soft fork in 2012, prohibiting the use of duplicate transaction IDs for transactions unless the previous transaction ID has been used. In July 2012, the BIP34 soft fork was proposed, requiring coinbase transactions to include block height information, which further ensured the uniqueness of transactions.

Bitcoin's Repeated Transactions: An Interesting Bug with Minimal Risk

However, BIP34 did not completely solve the problem. In some blocks before the activation of BIP34, there were some coinbase transactions where the first byte of the scriptSig happened to match the future valid block height. This means that at certain specific block heights in the future, duplicate transactions may still occur.

Bitcoin's Duplicate Transactions: An Interesting Bug with Minimal Risk

The next block that may experience duplicate transactions is 1,983,702, expected to be generated around January 2046. However, to exploit this loophole, miners would need to incur a huge cost, which could exceed 15 million USD at the current Bitcoin price. Considering the difficulty and cost of duplicating transactions, as well as the rarity of opportunities to exploit it, this loophole does not pose a significant security threat to Bitcoin.

Bitcoin's Duplicate Transaction: A Low-Risk Interesting Bug

Nevertheless, Bitcoin developers are still working hard to find a complete fix for this issue. One possible solution is to enforce the SegWit commitment. In any case, this rare technical flaw offers us an interesting perspective, allowing us to glimpse the complexity and evolution of the Bitcoin system.

Bitcoin's Duplicate Transactions: An Interesting Bug with Minimal Risk

BTC-0.75%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 7
  • Share
Comment
0/400
TokenSleuthvip
· 07-19 22:21
The early shitcoin was too primitive, tsk tsk.
View OriginalReply0
OffchainOraclevip
· 07-19 22:15
All in once and hit twice, right?
View OriginalReply0
quiet_lurkervip
· 07-19 22:06
I don't know anything, just shout bull run, hehe.
View OriginalReply0
ImpermanentLossFanvip
· 07-19 22:03
The double spending of btc actually existed, it's outrageous!
View OriginalReply0
NotSatoshivip
· 07-19 22:02
Damn, even repeated transactions can fail, Satoshi Nakamoto can also crash.
View OriginalReply0
PaperHandsCriminalvip
· 07-19 22:01
The early bugs in the crypto world cost me tens of thousands.
View OriginalReply0
ServantOfSatoshivip
· 07-19 21:56
Satoshi Nakamoto didn't expect this bug either; the early code was truly terrible.
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)