<p>Only the wallet holder can create a valid transaction. That's what makes them the wallet holder. The holder of a wallet is the person who can create valid transactions to claim the funds in that wallet.</p>

<p>So the transaction is not valid. Any block containing an invalid transaction is itself invalid. So everyone else (exchanges, wallets, etcetera) would ignore that block and any blocks mined on top of it. So all these miners would lose out on the money they could have made by mining valid blocks.</p>

CC BY-SA 3.0
2017-12-07T12:02:57.323Z
That's exactly what I mean tho. Let's say I have my own little network. I'm doing all the mining and I control all the wallets. Is it possible for me to transfer funds from wallet A to wallet B without using wallet A's private key given that I control every blockchain?
ivan
CC BY-SA 3.0
2017-12-07T12:04:16.973Z
@ivan Only if everyone agrees to let you. Otherwise, whoever didn't agree to let you would not recognize that transaction as valid, leading to an immediate complete fork in the network between those who agree with you and those who disagree. You can't stay in the same network if you don't agree on the rules. A core rule on bitcoin is that transactions must be properly signed to be valid.
David Schwartz
CC BY-SA 3.0
2017-12-07T12:15:20.087Z
Ok so if a majority agrees with my faulty transaction would that make the legitimate blocks the fork?
ivan
CC BY-SA 3.0
2017-12-07T12:16:33.210Z
The network would immediately fork in two -- those who agree your transaction is valid and those who don't. Which side is "the fork" is a matter of opinion at that point. Interestingly, if the majority of hash power doesn't side with you, the fork will not happen. A majority of hashing power has to side with the disputed block or there's no fork.
David Schwartz
CC BY-SA 3.0
2017-12-07T12:29:25.947Z
Thanks for explaining. What would such a fork look like through the eyes of an end user? Let's say there's a vending machine for candy that accepts bitcoin. A fork happens where the majority of the hashing power accepts a faulty transaction. The faulty transaction emptied a wallet which is now attempting to pay the vending machine. What would happen?
ivan
CC BY-SA 3.0
2017-12-07T17:57:38.207Z
The vending machine would reject it because it ignores the invalid transaction, any block it's in, and any block built on top of it, so it would go with the minority side of the fork. The vending machine would not recognize the transaction paying it as valid either. (Unless the vending machine's owners chose to go with the fork along with the majority of hashing power, in which case it would accept it.)
David Schwartz
CC BY-SA 3.0
2017-12-07T17:58:10.260Z
There is no power in the world that can force even a single user to accept a transaction or block that they believe is invalid. You do not need to go with the majority if you don't agree with them, but you lose the ability to interoperate with them.
David Schwartz
CC BY-SA 3.0
2017-12-07T11:45:44.263Z
2017-12-07T11:45:44.263Z
David Schwartz
<p>Let's say every single miner in the world added the same transaction to their block via trickery. The transaction was never initiated by the wallet holder. Would a block from these miners be added to the block chain?</p>

<p>If so what is the minimum number of miners needed to add a fake transaction to the block chain?</p>

CC BY-SA 3.0
2017-12-07T11:21:47.313Z
A transaction must be signed by a wallet holder.   This is not mere "policy", it is a mathematical requirement.
abelenky
<blockchain><security><transaction-verification>
What would happen if every miner adds a transaction to his block that did not occur?
ivan
# What would happen if every miner adds a transaction to his block that did not occur?

(Asked by: username_0 on 2017-12-07)

Let's say every single miner in the world added the same transaction to their block via trickery. The transaction was never initiated by the wallet holder. Would a block from these miners be added to the block chain?

If so what is the minimum number of miners needed to add a fake transaction to the block chain?

**Tags:** blockchain, security, transaction-verification

> **Comments:**
> **username_1**: A transaction must be signed by a wallet holder.   This is not mere "policy", it is a mathematical requirement.  

---

## 1 answers

### Answer by username_2 on 2017-12-07. Score: 0 | Accepted answer

Only the wallet holder can create a valid transaction. That's what makes them the wallet holder. The holder of a wallet is the person who can create valid transactions to claim the funds in that wallet.

So the transaction is not valid. Any block containing an invalid transaction is itself invalid. So everyone else (exchanges, wallets, etcetera) would ignore that block and any blocks mined on top of it. So all these miners would lose out on the money they could have made by mining valid blocks.

> **Comments:**
> **username_0**: That's exactly what I mean tho. Let's say I have my own little network. I'm doing all the mining and I control all the wallets. Is it possible for me to transfer funds from wallet A to wallet B without using wallet A's private key given that I control every blockchain?  
> **username_2**: @username_0 Only if everyone agrees to let you. Otherwise, whoever didn't agree to let you would not recognize that transaction as valid, leading to an immediate complete fork in the network between those who agree with you and those who disagree. You can't stay in the same network if you don't agree on the rules. A core rule on bitcoin is that transactions must be properly signed to be valid.  
> **username_0**: Ok so if a majority agrees with my faulty transaction would that make the legitimate blocks the fork?  
> **username_2**: The network would immediately fork in two -- those who agree your transaction is valid and those who don't. Which side is "the fork" is a matter of opinion at that point. Interestingly, if the majority of hash power doesn't side with you, the fork will not happen. A majority of hashing power has to side with the disputed block or there's no fork.  
> **username_0**: Thanks for explaining. What would such a fork look like through the eyes of an end user? Let's say there's a vending machine for candy that accepts bitcoin. A fork happens where the majority of the hashing power accepts a faulty transaction. The faulty transaction emptied a wallet which is now attempting to pay the vending machine. What would happen?  
> **username_2**: The vending machine would reject it because it ignores the invalid transaction, any block it's in, and any block built on top of it, so it would go with the minority side of the fork. The vending machine would not recognize the transaction paying it as valid either. (Unless the vending machine's owners chose to go with the fork along with the majority of hashing power, in which case it would accept it.)  
> **username_2**: There is no power in the world that can force even a single user to accept a transaction or block that they believe is invalid. You do not need to go with the majority if you don't agree with them, but you lose the ability to interoperate with them.  

---

