Bitcoin is a gossip network of peers. There is no central server that “is Bitcoin.” Your node connects to other nodes, validates rules, and relays data.
Why this matters
Wallet backends, explorers, and Lightning nodes depend on healthy P2P connectivity. Sync problems, eclipse risks, and privacy leaks start at the network layer.
Analogy
Think of nodes as neighbors on radios. When someone announces a new transaction or block, others rebroadcast after validation. Compact tricks let them share “what’s new” without repeating everything they already have.
Relay overview
Loading diagram…
Compact blocks and filters
- Compact block relay (BIP-152) reconstructs new blocks using mempool txs already known
- Compact block filters (BIP-157/158) help light clients find relevant txs with better privacy than old bloom filters
Builder checklist
- Run your own node for production backends when possible
- Monitor peer count and IBD/sync state
- Rate-limit and authenticate RPC, never expose it publicly
Common mistakes
- Exposing
bitcoindRPC to the internet - Assuming one explorer API equals full network view
- Ignoring that different peers may temporarily see different mempools
Worked mental model
Re-read the diagrams in this lesson once out loud in plain language. If you cannot explain the flow to a friend without jargon, pause and revisit Mastering Bitcoin / Mastering Lightning chapters linked in Resources. Chapter references are intentional, not decorative.
Hands-on habit
Every protocol idea should be paired with one local experiment:
- Reproduce the happy path on regtest (or Polar for Lightning)
- Break it on purpose (wrong fee, expired invoice, offline peer)
- Write down what error you saw and which layer produced it (wallet, node, mempool, peer)
That habit turns reading into builder instinct.
Glossary check
Pick three terms from this lesson and define them in one sentence each without opening notes. Weak definitions mean the lesson is not finished yet.
Resource order
Use Resources in order: narrative book chapter first, then BIP/BOLT for precision, then implementation docs for commands. Jumping straight to RPC flags without the mental model creates brittle knowledge.
Next steps
Learn mining and consensus: why proof-of-work secures the tip you are syncing.