FYI - Blockchain demo is here
https://andersbrownworth.com/blockchain/blockchain
-
Incentives miners, to be honest, discourage cheating
-
Because the blockās hash is derived from
- the transactions of the block
- the previous blockās hash
- and the nonce
If you go back and change a transaction in one of the previous blocks, then it changes its hash, and all the following blocks will be invalid. One needs to re-mine them and catch up with all the new blocks too to convince the other nodes that it is valid, which seems impossible.
- If more miners are in the network, the difficulty increases by lowering the target number.