<p>A block must satisfy the following conditions for it to be valid:</p>

<ul>
<li>The total size of the block must be 1MB or less. </li>
<li>At least 1 transaction called the coinbase transaction must exist. </li>
<li>Block must satisfy proof-of-work.</li>
<li>Block must reference a valid block as the previous block.</li>
</ul>

<p>There are some miscellaneous restrictions, but these are the main ones. What you called "solved by mining" is what's called satisfying the proof-of-work. What you called having at least one transaction is the restriction that the coinbase transaction must be present. I encourage you to <a href="https://en.bitcoin.it/wiki/Block" rel="nofollow">read the specification</a> to find out more.</p>

CC BY-SA 3.0
2016-07-04T23:58:20.203Z
2016-07-04T23:58:20.203Z
Jimmy Song
<p>If you mine a block, the block will contain your "transaction". But it can (and it will nowadays) contain more than 1 transaction. Transactions in one block need not be linked to each other. The can be linked if in one block there are transactions from (1) A->B and (2) B->C. Then those two transactions are linked, because transaction (2) has a reference to transaction (1).</p>

CC BY-SA 3.0
2016-07-06T11:41:58.113Z
2016-07-06T11:41:58.113Z
Erhard Dinhobl
<blockquote>
  <p>One block is defined (solved) by mining. If I have a super powerful computer, I can mine so quickly that one block will only contain one transaction. (I'm trying to understand if there is a link between the number of transaction and the mining speed.)</p>
</blockquote>

<p>Blocks are indeed the product of mining. New blocks are generated in a random process that sometimes succeeds very quickly or sometimes takes a long time to produce a block. When miners receive a new block, it takes them some time to validate the block and figure out which transactions were included. If they find a block very quickly, i.e. before the last block is validated, and they would have include transactions in their block, they could have accidentally included a transaction that was already confirmed in the last block. This would cause their new block to be invalid! Therefore, a lot of miners play it safe and only include the required <a href="https://bitcoin.stackexchange.com/q/4571/5406">coinbase transaction</a> in blocks when they just start out trying to build on a newly discovered block.<br>
Once the miners have completely validated the previous block, they know which transactions remain unconfirmed and can fill their block without the danger of producing an invalid block. </p>

<blockquote>
  <p>The transactions in the same block are not linked between each other. So miners do solve one transaction, but one block.</p>
</blockquote>

<p>In general each transaction stands by itself, so the order of the transactions is irrelevant for most transactions. There are two exceptions: 1. The coinbase transaction must be in first position. 2. If there are transactions that build on other transactions in the same block, they must be included in the correct order in the block. I.e. if transaction <code>B</code> spends an output of transaction <code>A</code>, <code>A</code> must come before <code>B</code> in the transaction list. All transactions are verified by the miner before they are included in the block, because an invalid transaction would make the block invalid and the miner doesn't get a block reward for an invalid block. :)</p>

CC BY-SA 3.0
2016-07-06T11:44:41.610Z
2016-07-06T11:44:41.610Z
2017-04-13T12:47:33.283Z
Murch
<p>While exploring the <a href="https://blockchain.info/en/charts" rel="nofollow">Blockchain.info charts</a>, I learned that:</p>

<ul>
<li>The average size of blocks is increasing (max=1MB).</li>
<li>The number of transactions in one block is also increasing.</li>
</ul>

<p>After reading some related articles, is it right to say that</p>

<ul>
<li>One block is defined (solved) by mining. If I have a super powerful computer, I can mine so quickly that one block will only contain one transaction. (I'm trying to understand if there is a link between the number of transaction and the mining speed.)</li>
<li>The transactions in the same block are not linked between each other. So miners do solve one transaction, but one block.</li>
</ul>

<transactions><blockchain><block>
How a block is defined (size, number of transactions)?
John Smith
# How a block is defined (size, number of transactions)?

(Asked by: username_0 on 2016-07-04)

While exploring the [Blockchain.info charts](https://blockchain.info/en/charts), I learned that:

* The average size of blocks is increasing (max=1MB).
* The number of transactions in one block is also increasing.

After reading some related articles, is it right to say that

* One block is defined (solved) by mining. If I have a super powerful computer, I can mine so quickly that one block will only contain one transaction. (I'm trying to understand if there is a link between the number of transaction and the mining speed.)
* The transactions in the same block are not linked between each other. So miners do solve one transaction, but one block.

**Tags:** transactions, blockchain, block


---

## 3 answers

### Answer by username_1 on 2016-07-04. Score: 3

A block must satisfy the following conditions for it to be valid:

* The total size of the block must be 1MB or less.
* At least 1 transaction called the coinbase transaction must exist.
* Block must satisfy proof-of-work.
* Block must reference a valid block as the previous block.

There are some miscellaneous restrictions, but these are the main ones. What you called "solved by mining" is what's called satisfying the proof-of-work. What you called having at least one transaction is the restriction that the coinbase transaction must be present. I encourage you to [read the specification](https://en.bitcoin.it/wiki/Block) to find out more.


---

### Answer by username_2 on 2016-07-06. Score: 1

If you mine a block, the block will contain your "transaction". But it can (and it will nowadays) contain more than 1 transaction. Transactions in one block need not be linked to each other. The can be linked if in one block there are transactions from (1) A->B and (2) B->C. Then those two transactions are linked, because transaction (2) has a reference to transaction (1).


---

### Answer by username_3 on 2016-07-06. Score: 0

> One block is defined (solved) by mining. If I have a super powerful computer, I can mine so quickly that one block will only contain one transaction. (I'm trying to understand if there is a link between the number of transaction and the mining speed.)

Blocks are indeed the product of mining. New blocks are generated in a random process that sometimes succeeds very quickly or sometimes takes a long time to produce a block. When miners receive a new block, it takes them some time to validate the block and figure out which transactions were included. If they find a block very quickly, i.e. before the last block is validated, and they would have include transactions in their block, they could have accidentally included a transaction that was already confirmed in the last block. This would cause their new block to be invalid! Therefore, a lot of miners play it safe and only include the required [coinbase transaction](https://bitcoin.stackexchange.com/q/4571/5406) in blocks when they just start out trying to build on a newly discovered block.  
Once the miners have completely validated the previous block, they know which transactions remain unconfirmed and can fill their block without the danger of producing an invalid block.

> The transactions in the same block are not linked between each other. So miners do solve one transaction, but one block.

In general each transaction stands by itself, so the order of the transactions is irrelevant for most transactions. There are two exceptions: 1. The coinbase transaction must be in first position. 2. If there are transactions that build on other transactions in the same block, they must be included in the correct order in the block. I.e. if transaction `B` spends an output of transaction `A`, `A` must come before `B` in the transaction list. All transactions are verified by the miner before they are included in the block, because an invalid transaction would make the block invalid and the miner doesn't get a block reward for an invalid block. :)


---

