mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-01-22 13:40:58 +00:00
Made changes to ch08.asciidoc
This commit is contained in:
parent
b4211b73b7
commit
4c77872418
@ -697,7 +697,7 @@ When a node receives a new block, it will validate the block by checking it agai
|
|||||||
* The first transaction (and only the first) is a coinbase generation transaction
|
* The first transaction (and only the first) is a coinbase generation transaction
|
||||||
* All transactions within the block are valid using the transaction checklist discussed in <<tx_verification>>
|
* All transactions within the block are valid using the transaction checklist discussed in <<tx_verification>>
|
||||||
|
|
||||||
The independent validation of each new block by every node on the network ensures that the miners can't cheat. In previous sections we saw how the miners get to write a transaction that awards them the new bitcoins created within the block and claim the transaction fees. Why don't miners write themselves a transaction for a thousand bitcoin instead of the correct reward? Because every node validates blocks according to the same rules. An invalid coinbase transaction would make the entire block invalid, which would result in the block being rejected and, therefore, that transaction would never become part of the ledger. The miners have to construct a perfect block, based on the shared rules that all nodes follow, and mine it with a correct solution to the Proof-Of-Work. To do so they expend a lot of electricity in mining, and if they cheat, all the electricity and effort is wasted. This is why independent validation is a key component of decentralized consensus.
|
The independent validation of each new block by every node on the network ensures that the miners can't cheat. In previous sections we saw how the miners get to write a transaction that awards them the new bitcoins created within the block and claim the transaction fees. Why don't miners write themselves a transaction for a thousand bitcoin instead of the correct reward? Because every node validates blocks according to the same rules. An invalid coinbase transaction would make the entire block invalid, which would result in the block being rejected and, therefore, that transaction would never become part of the ledger. The miners have to construct a perfect block, based on the shared rules that all nodes follow, and mine it with a correct solution to the proof of work. To do so they expend a lot of electricity in mining, and if they cheat, all the electricity and effort is wasted. This is why independent validation is a key component of decentralized consensus.
|
||||||
|
|
||||||
=== Assembling and Selecting Chains of Blocks
|
=== Assembling and Selecting Chains of Blocks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user