<blockquote>
  <p>Can they mine empty blocks?</p>
</blockquote>

<p>The miner must include a coinbase transaction (which determines the mining reward), or the block will be rejected by the network. That way, the miner is awarded coins for solving a block (even if it contains no other transactions) and coins are distributed according to consensus rules.</p>

<blockquote>
  <p>And how it works when there won't be any hash in empty block or there
  is a hash?</p>
</blockquote>

<p>There is still other data that is hashed, including:</p>

<p><code>version, previous block hash, merkle root, unix epoch time, difficulty target (bits), and nonce.</code></p>

<p>The merkle root including only the coinbase transaction in this example.</p>

CC BY-SA 4.0
2018-08-21T15:24:02.737Z
2018-08-21T15:24:02.737Z
JBaczuk
<p>what happens when there is noone doing transactions and miners mine the blocks? Can they mine empty blocks? And how it works when there won't be any hash in empty block or there is a hash?</p>

<p>Thank you</p>

<transactions><block>
Mining when there is no transaction
jakub
# Mining when there is no transaction

(Asked by: username_0 on 2018-08-21)

what happens when there is noone doing transactions and miners mine the blocks? Can they mine empty blocks? And how it works when there won't be any hash in empty block or there is a hash?

Thank you

**Tags:** transactions, block


---

## 1 answers

### Answer by username_1 on 2018-08-21. Score: 0 | Accepted answer

> Can they mine empty blocks?

The miner must include a coinbase transaction (which determines the mining reward), or the block will be rejected by the network. That way, the miner is awarded coins for solving a block (even if it contains no other transactions) and coins are distributed according to consensus rules.

> And how it works when there won't be any hash in empty block or there
> is a hash?

There is still other data that is hashed, including:

`version, previous block hash, merkle root, unix epoch time, difficulty target (bits), and nonce.`

The merkle root including only the coinbase transaction in this example.


---

