Research
Satoshi
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingZcasheCash.com

Fork Wars · Act I of VII · 2009–2010

The cap (2009–2010)

This is one chapter of Fork Wars, my sourced timeline of the Bitcoin block size war. The citation box, method and quote policy and image credits are on the main page, and every coin that came out of the war is in the full list of Bitcoin forks.

Act I of VII · 2009–2010

The cap

What you’ll learn: How a 32 MiB message limit became a quiet 1 MB consensus cap, and why Satoshi said a higher limit could be phased in later.

About 8 min read

In the wiki: Jeff Garzik Mike Hearn March 2013 chain fork Block size war

Bar chart on a log scale: the 32 MiB message cap in Bitcoin 0.1, the 1,000,000-byte cap added in 2010, the 500 KB generate soft cap, and the roughly 7 MB limit Garzik proposed in October 2010, which was not adopted.
Diagram drawn from the dates and figures in this act. Bitcoin Takeover.
Jan 2009–Jul 2010

The implicit ceiling

Correction

Satoshi didn't “increase the block size” in this period. The first public client had no explicit megabyte cap at all. What existed was a 32 MiB ceiling on a network message, large enough that, for practical purposes, block size was unconstrained. The 1 MB figure arrives in the next phase, as a new limit, not as a raise.

When Bitcoin v0.1 began connecting peers in January 2009, a block was just another message on the wire. In main.h of that release, Satoshi defined MAX_SIZE = 0x02000000: 33,554,432 bytes, or 32 mebibytes. The same constant is used when a block is accepted: if the serialized block is larger than MAX_SIZE, it is rejected. There's no second, tighter cap. A miner building a block in that client kept going while (fFoundSomething && nBlockSize < MAX_SIZE/2), so the generate path would have stopped around 16 MiB, still far above anything the network actually produced.

That 32 MiB figure is not a “block size policy” in the later sense. It's the maximum size of a protocol message, applied to blocks too because a block arrived as a message. Contemporary writers, including the Bitcoin Wiki's note on weight units, describe this as an implicit maximum of 32 MiB. No block in 2009 or early 2010 came anywhere close. Average size in 2009, from the Blockchain.com series used in the chart above, was about 0.0002 MB.

The interesting design tension is already visible in Satoshi's mail, even before anyone is arguing about a megabyte. On 12 April 2009 he told Mike Hearn that Visa-scale volume was already within reach of “existing hardware,” and that the system “never really hits a scale ceiling.” On 3 May 2009 he sent Martti Malmi similar arithmetic: 15 million transactions a day, at 1 KB each, would be “15GB of bandwidth for each block generating node per day, or about two DVD movies worth.” In the same letter he offered “100,000 block generating nodes” as a large-scale ballpark, with “millions of SPV clients.” Those sentences are quoted in the essay below. They don't set a block size, but they show that Satoshi was already thinking about a network where most users wouldn't carry the full chain and hardware improvement was part of the scaling story.

A quieter number also appears in the Malmi correspondence. On 4 December 2009 Satoshi described free-transaction policy: “free transactions until the block size is over 200K, with priority given to smaller transactions.” That 200 KB isn't a consensus limit. It is a policy area inside a block, reserved for zero-fee transactions, and he asked Malmi not to talk about the fee machinery in public because “it's there for flood control.” The later 1 MB constant, the 500 KB generate cap, and this 200 KB free area are three different knobs. Conflating them is one reason the early history gets told backwards.

Through mid-2010 the chain is still tiny, fees are still mostly theoretical, and the only hard size bound in the protocol is that 32 MiB message cap. The next commits will shrink what a valid block can be, not enlarge it.

Heard on Bitcoin Takeover

“I wasn't around at the time, but I do recall reading some of those posts. And it's interesting because I think very early 2010, 2011, people could see that this block size limit hard-coded in Bitcoin, what is now known as Bitcoin Core, would become a problem in the future and would be hard to remove once we hit it.”

Peter Rizun S16 E30 · 00:03:23 Listen Transcript Verified against transcript

Rizun is speaking retrospectively, and he is already looking at the 1 MB constant as a hard-coded limit. The next phase documents when that constant actually appeared. A fuller set of Satoshi quotations on scale is in What Satoshi wanted.

Jul–Sep 2010

Satoshi caps the block at 1 MB

On Thursday, 15 July 2010, at 00:18:45, Satoshi committed static const unsigned int MAX_BLOCK_SIZE = 1000000; to the tree. The commit is a30b56e. Four days later, on 19 July, the constant shipped in version 0.3.1 rc1 (9d2174b). The miner in that release would skip a transaction once nBlockSize + nTxSize >= MAX_BLOCK_SIZE - 10000, so new blocks created by the reference client stayed under about 990 KB. The official changelogs start later, at v0.3.12, and don't discuss the addition. That's why I describe the cap as arriving quietly.

A mining policy is not yet a consensus rule. The consensus step came on 7 September 2010, in commit 8c9479c (SVN r148, released with v0.3.12). Buried in a commit message that only says “cleanup, catch some recoverable exceptions and continue,” Satoshi added, in CBlock::AcceptBlock():

if (nHeight > 79400 && ::GetSerializeSize(*this, SER_NETWORK) > MAX_BLOCK_SIZE)
    return error("AcceptBlock() : over size limit");

Block 79,400 was mined on 12 September 2010. From the next block, nodes running this code would reject a block larger than 1,000,000 bytes. A matching sigops cap was gated on the same height. Then, on 19 September 2010 (some later summaries say 20 September; the commit date is the 19th), Satoshi removed the height gate in commit 172f006 but kept the 1 MB check. After that, the rule no longer mentioned 79,400. It was simply the size limit.

Alongside the hard cap sat a softer one, already visible in the October 2010 source Garzik would patch: MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2, or 500 KB. That is the figure Mike Hearn asked about at the end of 2010, “the 500kb limit on block sizes.” It was the size the official client would produce, not the size it would eventually be willing to accept. Satoshi's answer, on 29 December 2010, is in the essay: a higher limit “can be phased in once we have actual use closer to the limit.” Neither the July commit nor the September commit explains, in its message, why 1,000,000 bytes was the number. The careful height gate does suggest he didn't treat it as an emergency fork.

One more hidden constraint would matter later. Until 2013, the Berkeley DB lock limit of 10,000 effectively kept many blocks well below 1 MB (on the order of 500–750 KB of serialized data). When Bitcoin 0.8 replaced BDB with LevelDB in March 2013, that accidental cap disappeared and a short chainsplit followed. The 1 MB rule was then, for the first time, the binding consensus limit in practice as well as on paper.

Heard on Bitcoin Takeover

“And if you plot the block size on a scatter plot, you can actually see as those limits were lifted. But they were soft limits, they weren't consensus based. But then we hit this one megabyte limit and then all hell broke loose because it was no longer permissionless. Miners couldn't increase that soft limit by themselves. It required this coordinated change.”

Peter Rizun S16 E30 · 00:07:50 Listen Transcript Verified against transcript

Rizun is describing the later miner soft caps that were raised in the mid-2010s, and then the moment those ran into the 1 MB consensus rule. The 500 KB generate cap is the ancestor of that soft-limit story.

Oct 2010

Garzik's patch, and Satoshi's reply

On 3 October 2010, Jeff Garzik opened a Bitcointalk thread titled “[PATCH] increase block size limit.” He wanted the network to be able to “at least match Paypal's average transaction rate,” and he pasted a patch against main.h:

static const unsigned int TX_PER_MINUTE = 1400;
static const unsigned int TX_AVG_SIZE_GUESS = 256;
static const unsigned int MAX_BLOCK_SIZE =
 TX_PER_MINUTE * TX_AVG_SIZE_GUESS * 10 * 2;

That product is 7,168,000 bytes, a little over 7 MB, replacing the 1,000,000-byte constant that was then two and a half months old. MAX_BLOCK_SIZE_GEN would have remained half of the new cap. Garzik also posted a link to the patch file itself. Theymos replied the same evening that applying it would make a node “incompatible with other Bitcoin clients.”

Satoshi's first reply is at 21:07:28 UTC on 3 October, message 15139. It's short, so read it in full:

“+1 theymos. Don't use this patch, it'll make you incompatible with the network, to your own detriment. We can phase in a change later if we get closer to needing it.”

The next day, after Garzik and others had argued about whether an incompatible change could still be “phased in,” Satoshi came back at 19:48:40 UTC on 4 October, message 15366, and sketched the mechanism:

“It can be phased in, like:

if (blocknumber > 115000)
maxblocksize = largerlimit

It can start being in versions way ahead, so by the time it reaches that block number and goes into effect, the older versions that don't have it are already obsolete. When we're near the cutoff block number, I can put an alert to old versions to make sure they know they have to upgrade.”

Satoshi isn't endorsing a 7 MB cap, and he isn't ruling one out forever either. He's rejecting an immediate, uncoordinated patch that would fork a node off the network, and he's describing a flag-day style hard fork, announced early, with an alert to stragglers. Block 115,000 would have arrived only a couple of months later; he offers it as an illustration (“or some later time” is the spirit of the 3 October note: “if we get closer to needing it”). At the time, blocks were still tiny. The argument would be repeated, with far higher stakes, in 2015.

Heard on Bitcoin Takeover

“For context, the issue of increasing the block size was brought up by Jeff Garzik, I think in 2010. And he just published, like out of nowhere, he came up with this idea, hey, how about you run my client? It runs on seven megabyte blocks or something. And Satoshi just responded to that, don't run this software yet because it's too early for this kind of upgrade. We don't have enough users. Maybe we can reconsider this in the future. But the reason why he discouraged it was that it was going to be out of consensus with the rest of the miners and the validators.”

Vlad Costea S17 E39 · 00:21:32 Listen Episode Verified against transcript

My on-air paraphrase is close; the primary-source wording above is the authority. Jeff Garzik later appeared on the show in S15 E70. I haven't quoted that episode verbatim, because there's no speaker-labelled transcript for it.

0:000:00