<p>The amount of valid tx data which can be confirmed every 10 minutes is bound:</p>

<ul>
<li>1mb (tx serialisation without witnesses)</li>
<li>4m total block weight: </li>
</ul>

<p>The weight of a single transaction is <code>1 * TX-bytes(incl. witness) + 3 * TX-bytes(without witness)</code></p>

<p>Therefore, there is no mechanism to accommodate for more transactions other than reducing their individual byte-size and weight.</p>

CC BY-SA 4.0
2018-12-23T10:03:50.657Z
So what you're saying is that (unless these restrictions are relaxed as part of a hard fork) Bitcoin cannot scale up and won't be able to do more than 2000-3000 transactions every 10 minutes – is that correct? (If so, that would be a fundamental design flaw which would prevent Bitcoin from ever becoming a dominant currency. That's hard to believe...)
Mischa
CC BY-SA 4.0
2018-12-23T11:40:24.480Z
Bitcoin is non-scalable. That is necessary for decentralized validation, which provides the security for the system. Softforks such as segwit provide a logical increase in tx confirmation per block but that is not scaling in its strictest sense. Consider lightning or sidechains for alternative ways to transact offchain.
James C.
CC BY-SA 4.0
2018-12-22T18:00:14.683Z
2018-12-23T00:16:34.793Z
2018-12-23T00:16:34.793Z
James C.
<h2><strong>Why is there a limit? Why don't we change it?</strong></h2>

<p>No matter the number of transactions broadcast to the network, there is an implicit maximum number of transactions that can be included in a block (see @JamesC's answer), and the number of blocks found is regulated by the network's difficulty adjustment algorithm, aiming for an average of one block every ten minutes. This puts an effective cap on the number of transactions / second the network can confirm in the blockchain record. </p>

<p>You might therefore believe that adding an adjustment mechanism for the size or frequency of blocks would be beneficial to the network, but <a href="https://bitcoin.stackexchange.com/questions/46226/arguments-against-bitcoin-using-adaptive-blocksizes">further investigation shows this to actually be detrimental to the health of the network</a>. The reason there is no adjustment to the number of transactions included in a block (ie. an adjustable block size), is that such a mechanism would have undesirable implications for the ability of users to run nodes, and for the game theory of bitcoin mining: </p>

<p>For full nodes: In general, the larger a block is, the more computational resources (bandwidth, storage, computation) a node will need in order to validate it. So a larger block size puts pressure on the least capable nodes in the network, any increase in resource requirements should be expected to cause some number nodes to drop off the network. Thus we can see that a growing block size can be used as a DOS attack against resource-constrained nodes on the network, and this is obviously undesirable. </p>

<p>For miners: no matter the hardware, a larger block will take longer to download and validate. As a miner, this means that when you hear about a new block on the network, there is a brief period of time during which you will be downloading the new block, but are unable to begin mining on top of it before ensuring it is valid. <a href="https://bitcoin.stackexchange.com/questions/42126/do-larger-blocks-make-it-harder-for-smaller-miners-to-compete-why/42148#42148">This leads to an increase in orphan block rate, which will affect smaller miners more than larger miners</a>. Thus we can see that a larger miner would be incentivized to create larger blocks, because the latency issues associated with large blocks will affect their competitors (smaller miners) more than it would affect themselves. Ultimately, we would expect this to concentrate mining power amongst a few large-scale operations, which is obviously undesirable. </p>

<hr>

<h2>What other solutions are there?</h2>

<p>So all of that sounds pretty dismal in regards to scaling the Bitcoin network up to deal with a global transaction volume. BUT! The good news is that scaling the block size is perhaps the most obvious approach, but certainly not the only one. </p>

<p>For example, the <a href="https://bitcoin.stackexchange.com/questions/43700/how-does-the-lightning-network-work-in-simple-terms">lightning network</a> (LN) moves transactions off-chain, allowing pretty much unbounded transaction volume to occur off-band between LN participants. Further still, <a href="https://bitcoin.stackexchange.com/questions/67158/what-are-channel-factories-and-how-do-they-work">LN channel factories</a> could allow participants to transact with incredible cost savings. Note that <a href="https://bitcoin.stackexchange.com/questions/42639/what-are-the-trade-offs-between-transacting-on-lightning-network-and-bitcoin-mai">there are trade-offs involved in using the LN</a>, and the model of trust and security is slightly different than transacting on-chain. </p>

<p>Sidechains are also coming online, such an example is the <a href="https://blockstream.com/liquid/" rel="noreferrer">Liquid Network</a> created by Blockstream. Note that <a href="https://bitcoin.stackexchange.com/questions/40770/would-sidechains-help-bitcoin-scale/40772#40772">sidechains don't increase scalability, but they can increase scale</a>, though again with a different security and trust assumption than that of the underlying Bitcoin blockchain.</p>

<p><a href="https://bitcoin.stackexchange.com/questions/34288/what-are-the-implications-of-schnorr-signatures/35351#35351">Schnorr signatures</a> provide a number of benefits over ECDSA, in terms of scalability we can see that signatures can be smaller (meaning less bytes per transaction), and more flexible signature aggregation (many participants represented by a single aggregate signature, effectively reducing the 'number of bytes per user' in a transaction). Note that Schnorr signatures are not currently used on the Bitcoin network, but many developers would like to see their implementation in the future. </p>

<hr>

<h2>In conclusion: lets reconsider what a 'transaction' can represent</h2>

<p>To wrap all this up, I'll encourage you to move towards an understanding that <strong>a user interacting with the Bitcoin network to exchange some value does not necessarily have to map 1:1 to an on-chain transaction</strong>. An on-chain transaction can in fact represent a huge number of individual user transactions (eg. a transaction that opens a LN channel, or a transaction that includes an aggregated signature representing a huge number of individuals participating in a single transaction), <a href="https://medium.com/@RainDogDance/bitcoin-as-a-novel-market-institution-nic-carter-talk-at-baltic-honeybadger-2018-e085f163b213" rel="noreferrer">or as Nic Carter put it</a>: </p>

<blockquote>
  <p>[Bitcoin transactions] are nothing like Visa transactions, which they are commonly compared to. I like to refer to them as containerships, not parcels.</p>
</blockquote>

<p><strong>Which is to say that a single on-chain transaction can represent the economic activity of a great number of individual users, not just a single user's transaction.</strong></p>

<p>So we can see that 'number of transactions per second' is not a perfect measure of the social scalability of bitcoin, instead the 'economic throughput per second' is perhaps more interesting. If we can include the economic actions of more users per transaction, we may find a more viable path to scale the Bitcoin network to a global level. </p>

CC BY-SA 4.0
2018-12-24T07:43:26.007Z
Very elaborate answer with lots of great links helping towards getting a broader picture. Thanks a lot!
Mischa
CC BY-SA 4.0
2018-12-24T07:49:07.437Z
Love the analogy of seeing a transaction as a "container ship". There are very detailed explanations on this in the book [Mastering Bitcoin](https://github.com/bitcoinbook/bitcoinbook) by Andreas M. Antonopoulos which I just finished reading.
Mischa
CC BY-SA 4.0
2018-12-23T23:46:44.940Z
2018-12-23T23:54:41.750Z
2018-12-23T23:54:41.750Z
chytrik
<p>I've read some books and articles on Bitcoin and feel like I've understood many of its concepts but I'm not able to find an answer to a question I've had for a long time:</p>

<h3>How does the Bitcoin network adapt to an increased or decreased number of transactions per time interval?</h3>

<p>I know that the network tries to constantly adjust the cryptographic difficulty so that new blocks are mined in 10 minute intervals on average. When the block size is limited, every block can only include a maximum number of transactions.</p>

<p>This means that miners need to prioritize some transactions over others (most likely those that pay the higher fees) when the number of incoming transactions per 10 min interval exceeds this maximum. When the number of incoming transaction decreases over time below this maximum, those unprocessed transactions (those with the lower fees) will be included in the next blocks.</p>

<p>But what happens if, over a longer period of time, the number of incoming transactions per 10 min interval never decreases?</p>

<p>Consequently, this would mean than all transactions with a fee that's not high enough never make it into the blockchain (or at least not for a very long time).</p>

<h3>How does the Bitcoin network solve this problem?</h3>

<p>(Surely, with increased adoption, there will be more than a couple hundred or thousand transactions every 10 min?)</p>

CC BY-SA 4.0
2018-12-22T10:52:56.117Z
It does not solve this problem :)
sanket1729
<transactions><unconfirmed-transactions><blocksize>
Is there any mechanism in Bitcoin that allows it to dynamically adapt to the flow of transactions?
Mischa
# Is there any mechanism in Bitcoin that allows it to dynamically adapt to the flow of transactions?

(Asked by: username_0 on 2018-12-22)

I've read some books and articles on Bitcoin and feel like I've understood many of its concepts but I'm not able to find an answer to a question I've had for a long time:

### How does the Bitcoin network adapt to an increased or decreased number of transactions per time interval?

I know that the network tries to constantly adjust the cryptographic difficulty so that new blocks are mined in 10 minute intervals on average. When the block size is limited, every block can only include a maximum number of transactions.

This means that miners need to prioritize some transactions over others (most likely those that pay the higher fees) when the number of incoming transactions per 10 min interval exceeds this maximum. When the number of incoming transaction decreases over time below this maximum, those unprocessed transactions (those with the lower fees) will be included in the next blocks.

But what happens if, over a longer period of time, the number of incoming transactions per 10 min interval never decreases?

Consequently, this would mean than all transactions with a fee that's not high enough never make it into the blockchain (or at least not for a very long time).

### How does the Bitcoin network solve this problem?

(Surely, with increased adoption, there will be more than a couple hundred or thousand transactions every 10 min?)

**Tags:** transactions, unconfirmed-transactions, blocksize

> **Comments:**
> **username_1**: It does not solve this problem :)  

---

## 2 answers

### Answer by username_3 on 2018-12-23. Score: 5 | Accepted answer

## **Why is there a limit? Why don't we change it?**

No matter the number of transactions broadcast to the network, there is an implicit maximum number of transactions that can be included in a block (see @JamesC's answer), and the number of blocks found is regulated by the network's difficulty adjustment algorithm, aiming for an average of one block every ten minutes. This puts an effective cap on the number of transactions / second the network can confirm in the blockchain record.

You might therefore believe that adding an adjustment mechanism for the size or frequency of blocks would be beneficial to the network, but [further investigation shows this to actually be detrimental to the health of the network](https://bitcoin.stackexchange.com/questions/46226/arguments-against-bitcoin-using-adaptive-blocksizes). The reason there is no adjustment to the number of transactions included in a block (ie. an adjustable block size), is that such a mechanism would have undesirable implications for the ability of users to run nodes, and for the game theory of bitcoin mining:

For full nodes: In general, the larger a block is, the more computational resources (bandwidth, storage, computation) a node will need in order to validate it. So a larger block size puts pressure on the least capable nodes in the network, any increase in resource requirements should be expected to cause some number nodes to drop off the network. Thus we can see that a growing block size can be used as a DOS attack against resource-constrained nodes on the network, and this is obviously undesirable.

For miners: no matter the hardware, a larger block will take longer to download and validate. As a miner, this means that when you hear about a new block on the network, there is a brief period of time during which you will be downloading the new block, but are unable to begin mining on top of it before ensuring it is valid. [This leads to an increase in orphan block rate, which will affect smaller miners more than larger miners](https://bitcoin.stackexchange.com/questions/42126/do-larger-blocks-make-it-harder-for-smaller-miners-to-compete-why/42148#42148). Thus we can see that a larger miner would be incentivized to create larger blocks, because the latency issues associated with large blocks will affect their competitors (smaller miners) more than it would affect themselves. Ultimately, we would expect this to concentrate mining power amongst a few large-scale operations, which is obviously undesirable.

---

## What other solutions are there?

So all of that sounds pretty dismal in regards to scaling the Bitcoin network up to deal with a global transaction volume. BUT! The good news is that scaling the block size is perhaps the most obvious approach, but certainly not the only one.

For example, the [lightning network](https://bitcoin.stackexchange.com/questions/43700/how-does-the-lightning-network-work-in-simple-terms) (LN) moves transactions off-chain, allowing pretty much unbounded transaction volume to occur off-band between LN participants. Further still, [LN channel factories](https://bitcoin.stackexchange.com/questions/67158/what-are-channel-factories-and-how-do-they-work) could allow participants to transact with incredible cost savings. Note that [there are trade-offs involved in using the LN](https://bitcoin.stackexchange.com/questions/42639/what-are-the-trade-offs-between-transacting-on-lightning-network-and-bitcoin-mai), and the model of trust and security is slightly different than transacting on-chain.

Sidechains are also coming online, such an example is the [Liquid Network](https://blockstream.com/liquid/) created by Blockstream. Note that [sidechains don't increase scalability, but they can increase scale](https://bitcoin.stackexchange.com/questions/40770/would-sidechains-help-bitcoin-scale/40772#40772), though again with a different security and trust assumption than that of the underlying Bitcoin blockchain.

[Schnorr signatures](https://bitcoin.stackexchange.com/questions/34288/what-are-the-implications-of-schnorr-signatures/35351#35351) provide a number of benefits over ECDSA, in terms of scalability we can see that signatures can be smaller (meaning less bytes per transaction), and more flexible signature aggregation (many participants represented by a single aggregate signature, effectively reducing the 'number of bytes per user' in a transaction). Note that Schnorr signatures are not currently used on the Bitcoin network, but many developers would like to see their implementation in the future.

---

## In conclusion: lets reconsider what a 'transaction' can represent

To wrap all this up, I'll encourage you to move towards an understanding that **a user interacting with the Bitcoin network to exchange some value does not necessarily have to map 1:1 to an on-chain transaction**. An on-chain transaction can in fact represent a huge number of individual user transactions (eg. a transaction that opens a LN channel, or a transaction that includes an aggregated signature representing a huge number of individuals participating in a single transaction), [or as Nic Carter put it](https://medium.com/@RainDogDance/bitcoin-as-a-novel-market-institution-nic-carter-talk-at-baltic-honeybadger-2018-e085f163b213):

> [Bitcoin transactions] are nothing like Visa transactions, which they are commonly compared to. I like to refer to them as containerships, not parcels.

**Which is to say that a single on-chain transaction can represent the economic activity of a great number of individual users, not just a single user's transaction.**

So we can see that 'number of transactions per second' is not a perfect measure of the social scalability of bitcoin, instead the 'economic throughput per second' is perhaps more interesting. If we can include the economic actions of more users per transaction, we may find a more viable path to scale the Bitcoin network to a global level.

> **Comments:**
> **username_0**: Very elaborate answer with lots of great links helping towards getting a broader picture. Thanks a lot!  
> **username_0**: Love the analogy of seeing a transaction as a "container ship". There are very detailed explanations on this in the book [Mastering Bitcoin](https://github.com/bitcoinbook/bitcoinbook) by Andreas M. Antonopoulos which I just finished reading.  

---

### Answer by username_2 on 2018-12-22. Score: 1

The amount of valid tx data which can be confirmed every 10 minutes is bound:

* 1mb (tx serialisation without witnesses)
* 4m total block weight:

The weight of a single transaction is `1 * TX-bytes(incl. witness) + 3 * TX-bytes(without witness)`

Therefore, there is no mechanism to accommodate for more transactions other than reducing their individual byte-size and weight.

> **Comments:**
> **username_0**: So what you're saying is that (unless these restrictions are relaxed as part of a hard fork) Bitcoin cannot scale up and won't be able to do more than 2000-3000 transactions every 10 minutes – is that correct? (If so, that would be a fundamental design flaw which would prevent Bitcoin from ever becoming a dominant currency. That's hard to believe...)  
> **username_2**: Bitcoin is non-scalable. That is necessary for decentralized validation, which provides the security for the system. Softforks such as segwit provide a logical increase in tx confirmation per block but that is not scaling in its strictest sense. Consider lightning or sidechains for alternative ways to transact offchain.  

---

