Research·Verification

The Four Bitcoin Networks and What Each Is For

Bitcoin runs on four networks with the same software and different rules about who may add a block. Mainnet uses work alone. Testnet weakens it enough to let a laptop mine and spent a decade suffering for it. Signet replaces the contest with a signature. Regtest removes it entirely.

Level
Intermediate
Reading
7 min
Published
2026-11-24
Reviewed
2026-11-24

Every Bitcoin network runs the same validation code. What differs is one question: who is allowed to extend the chain, and at what cost. Mainnet answers with proof of work at real difficulty. The three test networks each answer differently, and each answer produces a different set of problems — which is why there are three rather than one.

What broke testnet3?

A convenience rule from 2011, operating exactly as written, for thirteen years.

Testnet has always carried a 20-minute exception: if a block’s timestamp is more than twenty minutes after the previous block’s, that block may be mined at minimum difficulty. The purpose is humane — a test network should not become unusable because the handful of people mining it went to lunch, and a laptop should be able to push the chain forward.

The flaw is in how it interacts with difficulty adjustment. The retarget calculation took its base from the last block of the previous period. If that last block happened to be mined under the 20-minute exception, the base was difficulty 1, and since an adjustment can move by at most a factor of four, the next period’s difficulty was pinned between 1 and 4. At that difficulty a CPU produces blocks in seconds.

The result is a block storm: thousands of blocks in rapid succession, then a return to real difficulty, then another storm. BIP 94 records that three years’ worth of blocks were mined in a few weeks while the network was practically unusable, and that testnet3 passed 2.5 million blocks with a subsidy down to around 0.014 coins — low enough that mining no longer distributed test coins at all.

The second failure was social rather than technical. Test coins became scarce enough to be bought and sold, which the BIP’s own motivation quotes as breaking “the fundamental principle of testnet coins having no value.” A test network with a market is not a test network.

What does testnet4 change?

Three rules, chosen to stay as close to mainnet as possible.

The 20-minute exception is kept, deliberately. Reviewers argued it is useful: it lets non-standard transactions be mined with a CPU, and it allows the chain to recover if hash rate abandons it at a high difficulty. Removing it was considered and rejected.

The block-storm fix instead changes the base of the retarget calculation to the first block of the previous period rather than the last, so a single minimum-difficulty block at the boundary can no longer drag the whole next period down.

The third rule closes a time warp attack that could have amplified the storms. The first block of each difficulty period must now carry a timestamp no more than 600 seconds before its predecessor’s — a rule borrowed from the long-discussed consensus cleanup proposal, preventing a miner from manipulating timestamps to keep difficulty at the floor.

Everything else matches mainnet, with every soft fork active from genesis. That is the point: a test network whose value is in resembling the real one.

The rejected alternatives are as informative as the adopted rules. Raising the minimum difficulty was dismissed because it would shut CPU miners out entirely. Lengthening the twenty-minute window drew little support. Re-enabling non-standard transaction acceptance by default was dismissed because layer-two teams had been using testnet for propagation tests and expected it to behave like mainnet — a reminder that a test network’s users depend on its defaults matching production, not just its consensus rules.

What problem does signet solve?

Predictability. Blocks are valid only if signed, so nobody can flood the chain and everybody can schedule the rare events worth testing.

A signet carries an extra consensus parameter — a challenge script, which can be a single key or a k-of-n multisig. A block is valid only if the coinbase commitment includes a solution to that challenge, in a structure identified by a four-byte signet header inside the BIP 141 commitment. Proof of work still exists; it simply is not the thing that decides who may extend the chain.

BIP 325’s framing of the goal is better than any summary of it: the aim is “not to be perfectly reliable but rather to have a predictable amount of unreliability.” A test network should behave like mainnet — no thousand-block reorganisations — while making it easy to trigger a six-block reorg deliberately, because that is the event an exchange or a layer-two protocol needs to test and will otherwise never see.

That combination is why signet, not testnet, is where serious multi-party integration testing happens. Anyone can also run a custom signet with their own challenge, which gives a private network with mainnet’s rules and a scheduler.

When is regtest the right answer?

Whenever one party controls the whole test, which is most of the time.

Regtest is a local network with difficulty at the floor and blocks created on demand. There is no mining in any meaningful sense: a command produces a block immediately, which makes it possible to write a test that confirms a transaction, triggers a timelock a thousand blocks later, and finishes in under a second.

What regtest cannot do is model other people. Because blocks are free, any participant can rewrite the chain at will, so it is useless for anything involving independent parties with conflicting interests — the exact gap signet was created to fill.

The division in practice is clean. Regtest for unit and integration tests inside one codebase. Signet for multi-party protocols and long-running scenarios. Testnet4 when you specifically need a network where blocks are mined by strangers and the chain is not yours to control. Mainnet when the consequences are supposed to be real.

How much does a test network cost to run?

Almost nothing to join, and more than people expect to keep honest.

A node on any of these networks is the same binary with a flag, and the chains are small: testnet4 started from genesis in 2024, signet is younger still, and regtest begins empty. A laptop handles any of them without the storage and sync considerations mainnet brings.

The cost is in maintaining usefulness. Test coins have to be distributed, which means somebody runs a faucet and somebody funds it. Blocks have to keep arriving, which on testnet means somebody mines at a loss and on signet means the challenge holders keep signing. The chain has to stay free of the speculation that ruined testnet3, which is a social problem with no technical fix.

None of that is glamorous and all of it is volunteer work, which is why test networks degrade quietly. A developer meeting an unresponsive faucet or a stalled chain usually concludes the tooling is broken rather than that the commons has been under-maintained, and moves to regtest, which needs nobody.

Does testing on them prove anything about mainnet?

Partly, and the gap is where the expensive surprises live.

The consensus rules match, so a transaction valid on signet is valid on mainnet. What does not transfer is everything economic. Fee markets on test networks are empty, so code that assumes its transaction will be mined has never been contradicted. Mempool eviction never happens because no mempool fills. Adversaries do not exist, because there is nothing to steal.

This is why layer-two failures tend to appear first in production despite extensive testing. A payment channel protocol tested where fees are zero and nobody is hostile has been checked for correctness and not for the conditions it will actually meet. Signet narrows the gap by letting you schedule hostile events; it does not create an adversary with a motive.

Check it yourself

One flag changes network, and the same binary does everything:

bitcoin-cli -signet getblockchaininfo
bitcoin-cli -testnet4 getblockchaininfo

For a local chain where you control time, regtest takes three commands — start the node, make an address, and mine to it:

bitcoin-cli -regtest generatetoaddress 101 <address>

The 101 is not arbitrary: a coinbase output cannot be spent until it is 100 blocks deep, so 101 blocks is the minimum that leaves one spendable coin. That rule is identical on every network, which is the sort of thing testing on regtest teaches you quickly.

What remains uncertain

Whether testnet4 stays usable. It fixed the storms and kept the 20-minute exception, which means minimum-difficulty blocks still occur routinely and the network is still cheap to disrupt for anyone who wants to. The BIP’s own rationale notes that miners could re-org minimum-difficulty blocks and treats that as out of scope, so the remaining defence is a mining policy nobody has adopted.

Whether signet’s signers matter. The default signet’s challenge is held by a small group, who can stop the network by stopping. That is acceptable for a test network and it is a dependency, and the answer — run your own signet — is one almost nobody takes.

How much the economic gap costs. Everyone knows test networks have no fee market and no adversary. Nobody has tried to quantify how many production failures trace to that gap, and the honest position is that testing proves correctness under conditions chosen by the tester.

Sources

Nearby