<p>Miners get paid by including one transaction in the block that creates and sends new bitcoins to their own address. This rule allows the Bitcoin network to pay for its own security and serves as a fair mechanism to distribute the initial bitcoins. The amount that a miner may mint is limited. Currently, miners get to mint 25 new bitcoins per block. They also use this transaction to collect the transaction fees of the transactions included in the block. This special transaction must be in the first position of the block's transactions and is called the <em>Coinbase transaction</em>.</p>

<p>Miners create the blocks, but the rules are checked and enforced by the whole network. If a miner creates a block that doesn't follow the rules, other network participants will discover this and not accept the block.<br>
If a miner where to award himself more money than the rules allow, the other participants see when they go through the block that it's breaking the rules. The same happens when a miner changes a transaction to give the money to himself: The signature on the transaction would not match the transaction and other network participants would not accept the block.</p>

<p>It is easy to check whether a block is valid, but hard to find a valid block. Therefore, it is impractical for a miner to lie about a block, because nobody would believe him anyway.</p>

CC BY-SA 3.0
2016-06-27T12:58:29.010Z
2016-06-27T12:58:29.010Z
Murch
<p>First, from a cryptography point of view, transactions have to be signed, and the other nodes in the network will be able to detect and reject transactions for which the signature was forged. Second, from an incentive point of view the miner will have invested some time in solving a block that will, as a result of the previous point, not earn him anything. So we can expect he won't try in the first place. </p>

<p>Another way to 'award themselves with any number of bitcoins' would be to create, rather than steal, the bitcoins. Indeed, mining is also about creating some bitcoins (currently ca. 25). But if a miner was to create more than 25, the block would again, not be acknowledged by the other nodes in the network. </p>

<p>I think the point is that a race is not won by "adding the next block" but rather by adding a block that will be considered by the other nodes to be valid.   </p>

CC BY-SA 3.0
2016-06-26T17:59:57.313Z
yes, but what if I say that I solved the block, when I really didn't?
nix
CC BY-SA 3.0
2016-06-26T18:00:39.690Z
so, after I confirm (solve) the block, then someone else has to confirm my confirmation and so on?
nix
CC BY-SA 3.0
2016-06-26T18:01:12.943Z
Solving a block is like solving a puzzle: it takes long to solve it but it is almost immediate to see whether you indeed solved it or not. So the other nodes will see almost immediately the puzzle is not solved. So the miner will not reep benefits from his/her lie.
hartmut
CC BY-SA 3.0
2016-06-26T18:02:50.920Z
okay, I think I understand how hashing works. but does anyone have to confirm my solution to the block I was solving AND also solve the transaction I created as a self-reward for solving it?
nix
CC BY-SA 3.0
2016-06-26T18:20:41.340Z
@NikaGamkrelidze The entire network works by consensus. If you broadcast a block that doesn't follow the bitcoin consensus rules, everyone else on the network will reject your block. They reject it because they look at all of the transactions and the coinbase reward and if any of those are invalid they know your block is wrong.
Brandon
CC BY-SA 3.0
2016-06-26T17:53:32.030Z
2016-07-05T17:43:25.783Z
2016-07-05T17:43:25.783Z
hartmut
<p>Even if a miner pulled a 51% attack and tried to mine a block with a coinbase transaction of, say, 26 bitcoin instead of 25, (or even 25 bitcoin after the halving), the rest of the network would reject that block. And, as others have said, the miner would have waisted resources. Also, note that one of the rules also state that a miner can only spend his reward after 100 blocks have been mined on top of his.</p>

CC BY-SA 3.0
2016-07-05T01:21:23.267Z
2016-07-05T01:21:23.267Z
ecavero
<p>A miner is at perfect liberty to create any sort of block he wants and broadcast it to the network.  This could include rewarding himself with an unlimited number of bitcoins, or including transactions without proper signatures.  However, this block means nothing if <em>other</em> miners do not consider the block valid.  If other miners reject the block, then it doesn't matter what the block says.</p>

<p>This creates a situation where a miner is wasting his valuable computational resources if he chooses to do the proof-of-work on an invalid block.  He would be throwing away the money invested into the mining hardware.  Unless he has reason to believe that the majority of hashing power on the network will accept his invalid block, it's in his best interest to follow the rules of the system.  A situation like this is known as a <a href="https://learncryptography.com/cryptocurrency/51-attack" rel="nofollow">51% attack</a>.</p>

<p>So long as hashing power is not centralized into the hands of those colluding with one another, Bitcoin is considered safe from this sort of vulnerability.</p>

CC BY-SA 4.0
2018-08-28T19:24:29.180Z
"However, this block means nothing if other miners do not consider the block valid. If other miners reject the block, then it doesn't matter what the block says." Okay, and how do we know that they consider it valid or invalid? Do they review the miner's work and sign a validation agreement and distribute that too or something?
Andrew
CC BY-SA 4.0
2018-08-29T20:55:54.397Z
@Andrew, another miner approves a block by mining on top if it.  If they continue to mine on top of a previous block or an alternate block, then they clearly don't consider the rejected block as being the true record.
Jestin
CC BY-SA 4.0
2018-08-31T00:01:15.683Z
But doesn't that require there to be transactions? Obviously it's in heavy usage today but my understanding is the blocks are pretty long.
Andrew
CC BY-SA 3.0
2016-06-26T23:40:56.883Z
2016-06-30T16:29:59.907Z
2016-06-30T16:29:59.907Z
Jestin
<p>Why can malicious miners not award themselves any number of bitcoins? Is that because the award itself is a transaction which has to be confirmed by a random miner? And if so, what if the miner himself will win the race?</p>

<p>Also, why can't any miner that has solved the block broadcast a self-award transaction at any time?</p>

<p>Also, if the award is in a transaction, who is the sender?</p>

<security><mining-reward><consensus>
Why can malicious miners not award themselves with any number of bitcoins?
nix
# Why can malicious miners not award themselves with any number of bitcoins?

(Asked by: username_0 on 2016-06-26)

Why can malicious miners not award themselves any number of bitcoins? Is that because the award itself is a transaction which has to be confirmed by a random miner? And if so, what if the miner himself will win the race?

Also, why can't any miner that has solved the block broadcast a self-award transaction at any time?

Also, if the award is in a transaction, who is the sender?

**Tags:** security, mining-reward, consensus


---

## 4 answers

### Answer by username_5 on 2016-06-26. Score: 5 | Accepted answer

A miner is at perfect liberty to create any sort of block he wants and broadcast it to the network. This could include rewarding himself with an unlimited number of bitcoins, or including transactions without proper signatures. However, this block means nothing if *other* miners do not consider the block valid. If other miners reject the block, then it doesn't matter what the block says.

This creates a situation where a miner is wasting his valuable computational resources if he chooses to do the proof-of-work on an invalid block. He would be throwing away the money invested into the mining hardware. Unless he has reason to believe that the majority of hashing power on the network will accept his invalid block, it's in his best interest to follow the rules of the system. A situation like this is known as a [51% attack](https://learncryptography.com/cryptocurrency/51-attack).

So long as hashing power is not centralized into the hands of those colluding with one another, Bitcoin is considered safe from this sort of vulnerability.

> **Comments:**
> **username_6**: "However, this block means nothing if other miners do not consider the block valid. If other miners reject the block, then it doesn't matter what the block says." Okay, and how do we know that they consider it valid or invalid? Do they review the miner's work and sign a validation agreement and distribute that too or something?  
> **username_5**: @username_6, another miner approves a block by mining on top if it.  If they continue to mine on top of a previous block or an alternate block, then they clearly don't consider the rejected block as being the true record.  
> **username_6**: But doesn't that require there to be transactions? Obviously it's in heavy usage today but my understanding is the blocks are pretty long.  

---

### Answer by username_1 on 2016-06-27. Score: 2

Miners get paid by including one transaction in the block that creates and sends new bitcoins to their own address. This rule allows the Bitcoin network to pay for its own security and serves as a fair mechanism to distribute the initial bitcoins. The amount that a miner may mint is limited. Currently, miners get to mint 25 new bitcoins per block. They also use this transaction to collect the transaction fees of the transactions included in the block. This special transaction must be in the first position of the block's transactions and is called the *Coinbase transaction*.

Miners create the blocks, but the rules are checked and enforced by the whole network. If a miner creates a block that doesn't follow the rules, other network participants will discover this and not accept the block.  
If a miner where to award himself more money than the rules allow, the other participants see when they go through the block that it's breaking the rules. The same happens when a miner changes a transaction to give the money to himself: The signature on the transaction would not match the transaction and other network participants would not accept the block.

It is easy to check whether a block is valid, but hard to find a valid block. Therefore, it is impractical for a miner to lie about a block, because nobody would believe him anyway.


---

### Answer by username_2 on 2016-06-26. Score: 2

First, from a cryptography point of view, transactions have to be signed, and the other nodes in the network will be able to detect and reject transactions for which the signature was forged. Second, from an incentive point of view the miner will have invested some time in solving a block that will, as a result of the previous point, not earn him anything. So we can expect he won't try in the first place.

Another way to 'award themselves with any number of bitcoins' would be to create, rather than steal, the bitcoins. Indeed, mining is also about creating some bitcoins (currently ca. 25). But if a miner was to create more than 25, the block would again, not be acknowledged by the other nodes in the network.

I think the point is that a race is not won by "adding the next block" but rather by adding a block that will be considered by the other nodes to be valid.

> **Comments:**
> **username_0**: yes, but what if I say that I solved the block, when I really didn't?  
> **username_0**: so, after I confirm (solve) the block, then someone else has to confirm my confirmation and so on?  
> **username_2**: Solving a block is like solving a puzzle: it takes long to solve it but it is almost immediate to see whether you indeed solved it or not. So the other nodes will see almost immediately the puzzle is not solved. So the miner will not reep benefits from his/her lie.  
> **username_0**: okay, I think I understand how hashing works. but does anyone have to confirm my solution to the block I was solving AND also solve the transaction I created as a self-reward for solving it?  
> **username_3**: @NikaGamkrelidze The entire network works by consensus. If you broadcast a block that doesn't follow the bitcoin consensus rules, everyone else on the network will reject your block. They reject it because they look at all of the transactions and the coinbase reward and if any of those are invalid they know your block is wrong.  

---

### Answer by username_4 on 2016-07-05. Score: 1

Even if a miner pulled a 51% attack and tried to mine a block with a coinbase transaction of, say, 26 bitcoin instead of 25, (or even 25 bitcoin after the halving), the rest of the network would reject that block. And, as others have said, the miner would have waisted resources. Also, note that one of the rules also state that a miner can only spend his reward after 100 blocks have been mined on top of his.


---

