THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Transaction Propagation Explained: P2P Relay, Inv, and Privacy

permalink THAMER
#bitcoin-p2p#inv#propagation#transaction-relay#wtxid

Bitcoin transactions normally spread through a peer-to-peer relay network before a miner includes them in a block. Relay is best-effort communication among independently configured nodes, not a consensus guarantee or an authoritative global queue.

Announcing and requesting transactions

Peers announce transaction inventory, commonly using inv-style announcements or wtxid-based relay where supported. A peer that wants a transaction can request it and verify it against consensus and local mempool policy before accepting it. Modern relay mechanisms can reduce redundant downloads, but they do not make every node's mempool identical.

Why propagation differs

Network topology, peer connectivity, transaction dependencies, bandwidth, policy settings, and conflicts all affect whether and when a node receives a transaction. A transaction may be accepted by one peer and rejected by another because of local fee thresholds or relay rules. A transaction may also be directly submitted to a miner without broad public relay.

Transaction relay and privacy

An observer connected to many peers may use timing and network topology to make probabilistic guesses about where a transaction originated. This is not reliable proof of a sender's identity. Bitcoin transaction relay does not itself provide network anonymity. Broadcasting through a wallet service also reveals information to that service; Tor can reduce some network-level exposure but cannot remove on-chain linkability.

Do not confuse Bitcoin's ordinary transaction relay with Dandelion or Dandelion++: those are separate research and design ideas, not a blanket description of standard Bitcoin Core transaction propagation.

Seen, accepted, and confirmed are different

A transaction seen on the network is not necessarily accepted into a local mempool. Local mempool acceptance is not confirmation. Confirmation requires inclusion in a block on the active chain; subsequent reorganizations can change its confirmation status.

Monitoring correctly

Record where a transaction was observed, distinguish local mempool presence from network-wide claims, and reconcile status against the active chain. A robust payment system handles replacements, conflicting transactions, eviction, and reorganizations without presenting an unconfirmed observation as final settlement.

Primary references

Bitcoin Developer Guide P2P Network: https://developer.bitcoin.org/devguide/p2p_network.html

BIP339 WTXID-based Transaction Relay: https://github.com/bitcoin/bips/blob/master/bip-0339.mediawiki

Bitcoin Core P2P documentation: https://github.com/bitcoin/bitcoin/tree/master/doc

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects