RoadmapsProjects
Sign in./start

Learn

RoadmapsProjects

Contribute

DiscoverIssues

Account

Sign in./start-building

Become an Open Source Builder. Learn. Build. Contribute.

Learn

RoadmapsProjectsStart Building

Contribute

DiscoverIssues

Account

Sign inDashboardSettings

Legal

PrivacyTerms

© 2026 Pull // all rights reserved

PrivacyTerms

lesson // bitcoin

Mempool & Fees

Follow unconfirmed transactions, fee estimation, RBF, and CPFP.

intermediate4 days

Public lesson — sign in to track progress on this roadmap.

./sign-in

On this page

Learning objectives

  • Explain mempool policy versus consensus rules
  • Estimate fees and choose confirmation targets
  • Apply RBF and CPFP fee-bumping strategies

study // plan

Lessons are primers. Depth comes from required reading, interactive labs, reflection, and a hands-on check with evidence — the BOSS study pattern.

Research on Bitcoin Search
mempoolBIP125

Required reading

  • bookMastering Bitcoin

    Ch. 9: Transaction Fees

Reflection prompts

  1. Explain Mempool & Fees to a teammate without jargon — what problem does it solve?
  2. What would break in production if you misunderstood Mempool & Fees?
  3. Which BIP, book chapter, or Core doc is authoritative here, and what did you verify?

Lab // Regtest check

After reading, run one hands-on check related to Mempool & Fees. Prefer local regtest or Polar over mainnet.

evidence required

  • ·Command output or screenshot from your local lab
  • ·One sentence on what you observed vs expected
  • ·Link to the required reading section you used

The mempool is each node’s holding area for valid unconfirmed transactions. Miners (and other nodes) choose what to relay and mine based on policy and fees, not every consensus-valid transaction is welcome under default policy.

Why this matters

Users experience Bitcoin through confirmation delays and fee spikes. Wallets that cannot bump fees create support nightmares.

Analogy

The mempool is an auction house lobby. Anyone can submit a bid (transaction). Higher fee rates tend to get seated (mined) first when space is scarce. Some items are rejected at the door for policy reasons even if they are “legal.”

Fee rate basics

const feeRateSatVb = feeSats / vsize;

Estimate using node RPCs (estimatesmartfee) or public observers, then add UX affordances for slow/medium/fast targets.

Loading diagram…

Stuck transactions need fee bumping via RBF or CPFP.

RBF and CPFP

  • RBF (BIP-125): replace an unconfirmed tx with a higher-fee variant (signals required)
  • CPFP: spend an unconfirmed output with a high-fee child that incentivizes mining both

Policy ≠ consensus

A transaction can be consensus-valid yet non-standard under default mempool policy. Builders must test relay behavior, not only block validity on regtest miner shortcuts.

Common mistakes

  • Broadcasting without RBF signaling when users may need to bump
  • Overpaying dramatically due to stale fee estimates
  • Creating long unconfirmed chains that hit ancestor/descendant limits

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:

  1. Reproduce the happy path on regtest (or Polar for Lightning)
  2. Break it on purpose (wrong fee, expired invoice, offline peer)
  3. 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

Study the P2P network: how transactions and blocks actually propagate, then mining and consensus.

further reading

  • bipBIP-125 RBF
  • articleBitcoin Optech: Fee bumping

progress // sign in

Reading is public. Sign in to mark lessons complete, sync across devices, and unlock your roadmap.

./sign-in-to-track
prevMultisig & TimelocksnextP2P Network

On this page

Press Shift + ? for keyboard shortcuts.

Press R to research on Bitcoin Search.