Skip to content

Commit

Permalink
Merge pull request #57 from jrakibi/fix-errorr-in-prevtxid
Browse files Browse the repository at this point in the history
Fix errorr in prevtxid
  • Loading branch information
jrakibi authored Jan 15, 2025
2 parents 906abb0 + 620c6c2 commit ede00fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions decoding/inputs-prev-txid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ category: Transactions
layout: TopicBanner
order: 3.3
icon: "FaClipboardList"
images: ["/bitcoin-topics/static/images/topics/thumbnails/transaction-module/fees-thumbnail-prevtxid.jpg"]
images:
[
"/bitcoin-topics/static/images/topics/thumbnails/transaction-module/fees-thumbnail-prevtxid.jpg"
]
parent: "transaction-structure"
---

Expand Down Expand Up @@ -135,11 +138,8 @@ The TXID is created differently depending on the transaction type:
This difference in segwit transactions was intentionally designed to prevent transaction malleability, as signatures are no longer part of the TXID calculation.

<ExpandableAlert title="Historical Note" type="info">
There was a unique situation in Bitcoin's history where duplicate TXIDs occurred in blocks 91,722 and 91,880. This led to:

1. BIP 30: Preventing blocks from containing duplicate TXIDs
2. BIP 34: Requiring coinbase transactions to include block height in their data
</ExpandableAlert>
There was a unique situation in Bitcoin's history where duplicate TXIDs occurred in blocks 91,722 and 91,880. As a result, BIP 30 was implemented to prevent blocks from containing duplicate TXIDs, and BIP 34 was introduced to require coinbase transactions to include block height in their data.
</ExpandableAlert>

## Implementation Details

Expand Down

0 comments on commit ede00fc

Please sign in to comment.