Skip to content

Commit

Permalink
Document duplicate txid behavior (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Feb 21, 2022
1 parent 2f2e0f8 commit 1fdaed5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bip.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Every satoshi is serially numbered, starting at 0, in the order in which it is m

The ordinal numbers of transaction inputs are transferred to outputs in first-in-first-out order, according to the size and order of the transactions inputs and outputs.

If a transaction is mined with the same transaction ID as outputs currently in the UTXO set, following the behavior of Bitcoin Core, the new transaction outputs displace the older UTXO set entries, destroying the ordinals contained in any unspent outputs of the first transaction.

For the purposes of the assignment algorithm, the coinbase transaction is considered to have an implicit input equal in size to the subsidy, followed by an input for every fee-paying transaction in the block, in the order that those transactions appear in the block. The implicit subsidy input carries the block's newly created ordinals. The implicit fee inputs carry the ordinals that were paid as fees in the block's transactions.

Underpaying the subsidy does not change the ordinal numbers of satoshis mined in subsequent blocks. Ordinals depend only on how many satoshis could have been mined, not how many actually were.
Expand Down

0 comments on commit 1fdaed5

Please sign in to comment.