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

Mining & Consensus

Proof-of-work, difficulty adjustment, and soft-fork activation for builders.

intermediate5 days

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

./sign-in

On this page

Learning objectives

  • Explain proof-of-work and difficulty adjustment
  • Distinguish consensus rules from miner preference
  • Describe soft-fork activation concepts builders encounter

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

Required reading

  • bookMastering Bitcoin

    Ch. 12: Mining

Reflection prompts

  1. Explain Mining & Consensus to a teammate without jargon — what problem does it solve?
  2. What would break in production if you misunderstood Mining & Consensus?
  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 Mining & Consensus. 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

Mining is the competitive process of finding a proof-of-work that makes a block header valid under current difficulty. Consensus rules define what blocks and transactions are valid; miners choose among valid templates.

Why this matters

You may never run an ASIC, but every confirmation UX, reorg assumption, and soft-fork discussion depends on mining incentives and consensus enforcement by full nodes.

Analogy

Difficulty is a treadmill that speeds up or slows down so that bags of work arrive roughly every 10 minutes. If blocks come too fast, the treadmill speeds up; too slow, it eases.

Proof-of-work loop

Loading diagram…

Miners search for a header hash below the target; winners earn rewards.

Difficulty adjustment

Approximately every 2016 blocks, difficulty adjusts based on recent timestamps to keep average block time near 10 minutes.

Soft forks

A soft fork tightens rules in a backward-compatible way. Activation methods (BIP-9 version bits, BIP-8 discussions, Speedy Trial historically) coordinate when new rules lock in. Builders should track whether their libraries and descriptors assume post-fork features (SegWit, Taproot).

Nodes enforce rules

Miners propose blocks; full nodes verify. Economic users running nodes ultimately decide which rules their software accepts.

Common mistakes

  • Believing miners can arbitrarily change supply rules without node acceptance
  • Ignoring that empty blocks / fee market dynamics affect confirmation times
  • Testing only generatetoaddress on regtest and assuming mainnet propagation behavior matches

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

Move into development: libraries, wallet architecture, descriptors, and Bitcoin Core RPC.

further reading

  • bipBIP-9 Version bits
  • articleBitcoin Optech: Soft fork activation

progress // sign in

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

./sign-in-to-track
prevSoft Forks & ActivationnextBitcoin Libraries

On this page

Press Shift + ? for keyboard shortcuts.

Press R to research on Bitcoin Search.