<ol>
<li><p>The first transaction in the block is one created by the miner, it pays the miner the current block reward + sum of transaction fees for other transactions in the block (if any). If that block is accepted by other nodes, after 100 more blocks the miner can spend the money. Other nodes check that spending of this new money meets all the rules.</p>
</li>
<li><p>Each confirmation is a block added on top of the prior block. You can't fake that, you have to mine it. You have to provide the needed proof of work. Ordinary non-mining wallets can verify a transaction but can't confirm it.</p>
</li>
<li><p>Each node works separately to decide what is valid and what isn't. The 51% attack refers to percentage of hashing power not percentage of nodes. Consensus is more of an <a href="https://en.wikipedia.org/wiki/Emergence" rel="nofollow noreferrer">emergent phenomenon</a>, it isn't like explicit vote counting.</p>
</li>
<li><p>They already checked them and don't need to check them again. Nodes typically each keep and maintain a list of unspent transaction outputs (UTXOs) - you can think of a UTXO as a valid coin.</p>
</li>
<li><p>They don't care. They keep track of both. They pick one arbitrarily as true.  They regularly compare amount of work in each branch. It's only later that a branch with more work may require a reorganisation (e.g. of UTXO set etc). This happens automatically and isn't a problem.</p>
</li>
</ol>
<p>Before asking follow-up questions you will find it best to  read some existing answers such as</p>
<ul>
<li><a href="https://bitcoin.stackexchange.com/q/148/13866">What exactly is Mining?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/81872/13866">How many nodes need to validate a newly created block?</a></li>
<li><a href="https://bitcoin.stackexchange.com/search?q=51%25">51%</a></li>
</ul>

CC BY-SA 4.0
2021-05-17T14:12:15.943Z
2021-05-17T14:45:32.043Z
2021-05-17T14:45:32.043Z
RedGrittyBrick
<p>I'm a developer. I've read a lot about Bitcoin structure and how it works. But yet something confuse me.
I would like to share them with you and read your answers:</p>
<ol>
<li><p>When a miner solves a block, how other nodes reward it? If they have the source code to generate Bitcoin, why don't they generate it for themeselves?</p>
</li>
<li><p>I know 6 confirmations are enough for a transaction to be valid. What If I run 6 full nodes by myself and hard code their addresses in a wallet to create a fake transaction?</p>
</li>
</ol>
<p>3 . When 51 percent agreement is made? On every transaction? Or each block solved?</p>
<ol start="4">
<li><p>When a new transaction is made, do miners check all previous transactions in blockchain for maker person to check if it's lying or not?</p>
</li>
<li><p>If more than one miners create a new block and broadcast it into network, how other nodes would find out which one was the first?</p>
</li>
</ol>
<p>I'm very curious about Bitcoin technology but I couldn't find a source that satisfies me.</p>

CC BY-SA 4.0
2021-05-18T06:14:42.310Z
Does this answer your question? [What exactly is Mining?](https://bitcoin.stackexchange.com/questions/148/what-exactly-is-mining)
Saxtheowl
CC BY-SA 4.0
2021-05-26T14:57:00.727Z
Hi Robert, it looks like RedGrittyBrick already gave you answers to your five questions, but in the future, please only ask one question per topic. Focusing on one topic helps us build a searchable archive of questions and answers--something like "some technical questions about bitcoin" is hard to categorize and make searchable.
Murch
<blockchain><cryptography>
Some technical questions about Bitcoin
james hofer
# Some technical questions about Bitcoin

(Asked by: username_0 on 2021-05-17)

I'm a developer. I've read a lot about Bitcoin structure and how it works. But yet something confuse me.
I would like to share them with you and read your answers:

1. When a miner solves a block, how other nodes reward it? If they have the source code to generate Bitcoin, why don't they generate it for themeselves?
2. I know 6 confirmations are enough for a transaction to be valid. What If I run 6 full nodes by myself and hard code their addresses in a wallet to create a fake transaction?

3 . When 51 percent agreement is made? On every transaction? Or each block solved?

4. When a new transaction is made, do miners check all previous transactions in blockchain for maker person to check if it's lying or not?
5. If more than one miners create a new block and broadcast it into network, how other nodes would find out which one was the first?

I'm very curious about Bitcoin technology but I couldn't find a source that satisfies me.

**Tags:** blockchain, cryptography

> **Comments:**
> **username_1**: Does this answer your question? [What exactly is Mining?](https://bitcoin.stackexchange.com/questions/148/what-exactly-is-mining)  
> **username_2**: Hi Robert, it looks like username_3 already gave you answers to your five questions, but in the future, please only ask one question per topic. Focusing on one topic helps us build a searchable archive of questions and answers--something like "some technical questions about bitcoin" is hard to categorize and make searchable.  

---

## 1 answers

### Answer by username_3 on 2021-05-17. Score: 3

1. The first transaction in the block is one created by the miner, it pays the miner the current block reward + sum of transaction fees for other transactions in the block (if any). If that block is accepted by other nodes, after 100 more blocks the miner can spend the money. Other nodes check that spending of this new money meets all the rules.
2. Each confirmation is a block added on top of the prior block. You can't fake that, you have to mine it. You have to provide the needed proof of work. Ordinary non-mining wallets can verify a transaction but can't confirm it.
3. Each node works separately to decide what is valid and what isn't. The 51% attack refers to percentage of hashing power not percentage of nodes. Consensus is more of an [emergent phenomenon](https://en.wikipedia.org/wiki/Emergence), it isn't like explicit vote counting.
4. They already checked them and don't need to check them again. Nodes typically each keep and maintain a list of unspent transaction outputs (UTXOs) - you can think of a UTXO as a valid coin.
5. They don't care. They keep track of both. They pick one arbitrarily as true. They regularly compare amount of work in each branch. It's only later that a branch with more work may require a reorganisation (e.g. of UTXO set etc). This happens automatically and isn't a problem.

Before asking follow-up questions you will find it best to read some existing answers such as

* [What exactly is Mining?](https://bitcoin.stackexchange.com/q/148/13866)
* [How many nodes need to validate a newly created block?](https://bitcoin.stackexchange.com/q/81872/13866)
* [51%](https://bitcoin.stackexchange.com/search?q=51%25)


---

