1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-26 09:58:22 +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]
====
((("transaction IDs (txd)")))((("malleability")))A transaction ID is not
authoritative until a transaction has been confirmed. Absence of a
transaction hash in the blockchain does not mean the transaction was not
processed. This is known as "transaction malleability," because
transaction hashes can be modified prior to confirmation in a block.
After confirmation, the +txid+ is immutable and authoritative.
((("transaction IDs (txd)")))((("malleability")))A transaction ID (txid)
is not authoritative. Absence of a txid in the blockchain does not mean
the transaction was not processed. This is known as "transaction
malleability," because transactions can be modified prior to
confirmation in a block, changing their txids. After a transaction is
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