<p>If a miner includes a bad transaction (in your example, a person sending more BTC than they actually have), then the block will not be concidered valid by other bitcoin nodes and miners.  That means the block will not be built upon by the blockchain, and the miner will lose out on the 50 BTC generated from that block.</p>

CC BY-SA 3.0
2011-09-11T14:15:18.067Z
You are right.  If a large group of people agreed to change the rules, it would just fork the blockchain and normal people would ignore the forked chain.
Erv Walter
CC BY-SA 3.0
2011-09-10T14:38:28.510Z
2011-09-11T14:15:28.677Z
2011-09-11T14:15:28.677Z
Erv Walter
<p>Any block that contains an invalid transaction will be considered invalid <em>as a whole</em>, and every other peer/miner will reject it. A miner must check that every transaction included in a block is valid, otherwise there is a high risk that all the hard work required to solve the block is just being wasted.</p>

<p>Any miner who disobeys the validity requirements (by considering some invalid block as valid, or some valid block as invalid) will be completely disregarded by the rest of the network, defeating the point of any mining activity. </p>

<p><strong>Note</strong>: Sending 1BTC with a fee of 1BTC is a perfectly valid transaction (even though it might be a mistake by <em>A</em>). Of course, doing that, <em>A</em> must own 2BTC and give them away, or the transaction can't possibly be valid.</p>

CC BY-SA 3.0
2011-09-10T13:14:34.133Z
2011-09-12T08:31:54.150Z
2011-09-12T08:31:54.150Z
Stéphane Gimenez
<p>'A' has got 1BTC legitimately. He sends out a transaction to transfer that one bitcoin to 'B' with a 1BTC transaction fee added on. (i.e. a bad request.)</p>

<p>'C' is a miner who cares nothing for integrity of the bitcoin system and only cares about winning blocks and selling the BTC he gets as soon as he can.</p>

<p>What incentive does C have to pass on the free 1BTC and not include A's transaction when putting the next block together?</p>

CC BY-SA 3.0
2011-09-10T13:05:59.527Z
Could you point us in the right direction regarding why you consider this transaction 'bad'? It doesn't make much economic sense, but assuming signature checks out.. it is a valid way to spend money..
qdot
CC BY-SA 3.0
2011-09-10T16:48:01.577Z
'A' would be spending 2 BTC, but he only has 1.
billpg
CC BY-SA 3.0
2011-09-13T11:09:17.377Z
Actually, such a transaction would still be spending '1BTC', with 'B' receiving 0BTC
qdot
CC BY-SA 3.0
2011-09-13T12:56:00.023Z
I see, the fee is subtracted from the value being sent? I've edited the question to make it clear the fee is added to the initial 1BTC. Thanks.
billpg
<transactions><security><blockchain>
What incentive is there for a miner to not include a bad transaction?
billpg
# What incentive is there for a miner to not include a bad transaction?

(Asked by: username_0 on 2011-09-10)

'A' has got 1BTC legitimately. He sends out a transaction to transfer that one bitcoin to 'B' with a 1BTC transaction fee added on. (i.e. a bad request.)

'C' is a miner who cares nothing for integrity of the bitcoin system and only cares about winning blocks and selling the BTC he gets as soon as he can.

What incentive does C have to pass on the free 1BTC and not include A's transaction when putting the next block together?

**Tags:** transactions, security, blockchain

> **Comments:**
> **username_1**: Could you point us in the right direction regarding why you consider this transaction 'bad'? It doesn't make much economic sense, but assuming signature checks out.. it is a valid way to spend money..  
> **username_0**: 'A' would be spending 2 BTC, but he only has 1.  
> **username_1**: Actually, such a transaction would still be spending '1BTC', with 'B' receiving 0BTC  
> **username_0**: I see, the fee is subtracted from the value being sent? I've edited the question to make it clear the fee is added to the initial 1BTC. Thanks.  

---

## 2 answers

### Answer by username_3 on 2011-09-10. Score: 12 | Accepted answer

Any block that contains an invalid transaction will be considered invalid *as a whole*, and every other peer/miner will reject it. A miner must check that every transaction included in a block is valid, otherwise there is a high risk that all the hard work required to solve the block is just being wasted.

Any miner who disobeys the validity requirements (by considering some invalid block as valid, or some valid block as invalid) will be completely disregarded by the rest of the network, defeating the point of any mining activity.

**Note**: Sending 1BTC with a fee of 1BTC is a perfectly valid transaction (even though it might be a mistake by *A*). Of course, doing that, *A* must own 2BTC and give them away, or the transaction can't possibly be valid.


---

### Answer by username_2 on 2011-09-10. Score: 2

If a miner includes a bad transaction (in your example, a person sending more BTC than they actually have), then the block will not be concidered valid by other bitcoin nodes and miners. That means the block will not be built upon by the blockchain, and the miner will lose out on the 50 BTC generated from that block.

> **Comments:**
> **username_2**: You are right.  If a large group of people agreed to change the rules, it would just fork the blockchain and normal people would ignore the forked chain.  

---

