Bitcoin Transaction Relay: From Inventory to Packages
Overview
Transaction relay is the mechanism by which unconfirmed transactions travel between Bitcoin peers. It is distinct from block relay and distinct from the consensus rules applied to confirmed transactions.
Inventory announcements
Nodes commonly announce transaction identifiers and let peers request data. Relay policies and rate limits help protect network resources. Network connectivity, peer diversity and local mempool rules influence which transactions a node sees.
Fee policy and replacement
Fee floors and replacement rules affect admission. A transaction can be valid for inclusion in a block yet not be relayed by a particular node. Wallets must handle delayed propagation, rebroadcast, conflicts and changing feerates without assuming one node represents the whole network.
Package concepts
A transaction package groups related transactions for policy evaluation. This is relevant when a child transaction pays enough fees to make mining its low-fee parent worthwhile. Package support is not equivalent to arbitrary atomic settlement or a cross-chain swap.
Why the distinction matters
Monitoring systems should record observation and confirmation separately. The first is a mempool or peer event; the second is a chain-state event. Reorganizations can change the latter, and replacement can change the former.
Primary reading
BIP 125: RBF
https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki
Bitcoin Core repository
https://github.com/bitcoin/bitcoin
Bitcoin Core developer documentation
https://bitcoincore.org/en/doc/
Related Bitcoin history
Explore the historical questions in the THAMER ASK archive:
https://thamer.org/ask
Related THAMER research
Who received the first Bitcoin transaction?
https://thamer.org/ask/who-received-the-first-bitcoin-transaction
