Homework on Mining and Proof of Work - Questions
- Why is it important to make sure that miners spend money (on electricity) while mining?
By making miners spend money on electricity while mining, we ensure that the miners are incentivised to follow the rules and not be dishonest to the network. If a miner tries to double spend or chooses wrong transactions, he will not be rewarded with the block rewards or the transaction fees. Meaning that if miners are honest, they make money, if they are dishonest, they lose money.
- Why would it be very difficult for someone to go back change a previously added block?
It would be difficult for someone to go back and change a previously added block because the puzzle/equation needed to be solved to create a new block, is based around the information on previous blocks. The links that connect the blocks are based on the information on previous blocks. Letâs say someone wanted to change a transaction in a block, in order to do that he would have to break the links of all blocks that have come after it because the links between these blocks have been created using the information of the block that came before it.
In order for you to do that, you would need to have a bigger hash rate than the entire community of miners. The hash rate determines the difficulty of the puzzle. So if you were to change a transaction on an old block, all the blocks that have come after it, would have to be re-mined, and meanwhile, other people would already be mining more blocks, the network always chooses the longest chain.
- How does the network regulate mining difficulty?
Mining difficulty is proportional to the networks hash rate, which is a measure of users spending electricity, money, and processing power actively mining. Meaning that the difficulty is increased by the amount of miners that join the network, the more miners, the more difficult it is to mine.