Let's assume we have 100 blocks. One miner x has the intention to manipulate block 90. So he has to recalculate the hash for block 90. Following he also has to recalculate the hashes for block 91-100. Correct me, if I'm talking non-sense here.

So how do all the other miners figure out that miner x is cheating? And what happens to miner x, if he gets caught?


What you are describing is a textbook example of a 51% attack. Bitcoin protocol is designed to accept the chain that has the most proof of work (most often this is same as the longest chain). If a miner needs to change block 90, he will have to recalculate hashes starting from block 90-100. To make his attack successful, the miner will have to mine blocks faster than the rest of the network so that he can broadcast the longest chain which then gets accepted by the network. So, probabilistically this would mean the miner should be in control of >50% of the total hashing power, so that he can mine blocks faster than rest of the network combined.

  • Thanks for the answer. But how do other miners figure out that he is cheating? Do they have a look into the hashes of the blocks and compare them? And what happens to a cheating miner? Does he get excluded from the network? – Michael Apr 8 at 11:13
  • If the miner has created valid blocks following all the rules of the bitcoin protocol, then the chain he has created is valid. Nodes accept chains that has the most proof of work. If the malicious miner is able to race the network into creating the longest chain then yes, that is the truthful chain – Ugam Kamat Apr 8 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.