BIP draft: OP_CHECKBLOCKATHEIGHT [combined summary]



Individual post summaries: Click here to read the original discussion on the bitcoin-dev mailing list

Published on: 2016-10-05T02:15:36+00:00


Summary:

A proposal has been made for a new opcode, OP_CHECKBLOCKATHEIGHT, in the Bitcoin scripting system. This opcode aims to tackle the problem of re-issuing bitcoin transactions when the coins they spend have been conflicted or double-spent. The proposal sparked a discussion among developers on the bitcoin-dev mailing list.Some developers expressed concerns about the complexity and potential risks of the opcode. They argued that the added complexity may not be worth the reward of protecting Bitcoiners from untrusted creditors. There were also concerns about the impact on fungibility and the risk of invalidation caused by blockchain reorganizations.Luke Dashjr, the developer who proposed the opcode, provided examples to illustrate how it could solve the problem of double-spending. One example involved Alice sending Bob BTC using a specific UTXO, but Fred double-spends that UTXO, invalidating Alice's transfer. Without the new opcode, Alice could send Bob a different UTXO, but there is a risk of both UTXOs being mined, resulting in Bob receiving more BTC than intended. With the new opcode, Alice can create a transaction that is only valid in the blockchain where Fred's double-spend has been confirmed. If that block is reorganized out, the transaction becomes invalid, ensuring that Bob receives only the original UTXO or a revised transaction if the double-spend is confirmed again.The discussion also touched upon other aspects related to the proposed opcode. There were suggestions to prevent overuse of the opcode and enforce a maximum survivable reorg to ensure sensible handling of exposed coins. Concerns were raised about the impact on mempool handling and the potential for persistent chain forks.Overall, the proposed opcode aims to address the issue of double-spending and conflicts in bitcoin transactions. It introduces a new way for users to create transactions that are only valid in specific blockchain scenarios, ensuring that the intended recipient receives the correct amount of BTC without the risk of loss due to blockchain reorganizations. However, there are ongoing discussions and debates among developers about the complexity and potential risks associated with implementing this opcode.The proposal has been put forward by Luke-Jr, who is seeking feedback from the community on whether this approach is a good idea. It is currently uncertain whether this proposal will be accepted and implemented by the Bitcoin community. However, if accepted, the proposed opcode could potentially provide a solution to the issue of double-spending that has plagued the Bitcoin network in the past. Overall, this BIP presents an interesting and innovative approach to addressing the problem of double-spending in the Bitcoin network. While its acceptance and implementation are yet to be determined, it is worth considering as a potential solution to this long-standing issue.


Updated on: 2023-08-01T19:04:16.255801+00:00