1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-22 16:18:11 +00:00

CH03::malleability: correct statement about malleability after confirmation

Txids can be mutated after confirmation, it's just rare.  Update text to
state this.
This commit is contained in:
David A. Harding 2023-02-05 09:44:02 -10:00
parent aa316f415b
commit 4131102e9c

View File

@ -787,12 +787,14 @@ a0100000000ffffffff02204e0000000000002251203b41daba4c9ace578369740f15e5ec880c&#x
[TIP] [TIP]
==== ====
((("transaction IDs (txd)")))((("malleability")))A transaction ID is not ((("transaction IDs (txd)")))((("malleability")))A transaction ID (txid)
authoritative until a transaction has been confirmed. Absence of a is not authoritative. Absence of a txid in the blockchain does not mean
transaction hash in the blockchain does not mean the transaction was not the transaction was not processed. This is known as "transaction
processed. This is known as "transaction malleability," because malleability," because transactions can be modified prior to
transaction hashes can be modified prior to confirmation in a block. confirmation in a block, changing their txids. After a transaction is
After confirmation, the +txid+ is immutable and authoritative. included in a block, its txid cannot change unless there is a blockchain
reorganization where that block is removed from the best blockchain.
Reorganizations are rare after a transaction has several confirmations.
==== ====
The command +getrawtransaction+ returns a serialized transaction in The command +getrawtransaction+ returns a serialized transaction in