i've been always trying to figure out how exactly the mining process works with bitcoin but always failed to understand it.
All i know that the block hash should have a lot of zeros but what hashes what to get this value is what i am trying to understand. I have googled, watched YouTube, but still i can't get it well enough.
i would really be thankful if someone can explain to me in a easy way on how the mining process works with the following example block number 750452:
It's block hash is: 0000000000000000000420d2e347f016f63d9045b7895589e5eff33893cf833f
Merkle root: ef108a25a975f6c2f5528e0e1b2d4162686a8f878a0ca9b40e59d1845d8c9798
Nonce: 263795775
previous block hash: 000000000000000000084d88e5ac59edd7c34c20d6b5addf18aae6f1040ac215
Now can anyone explain for me please?
Simply the concatenation of (version+previous_hash+merkle_root+tim_stamp+target_difficulty+nonce) called candidate block header should give the right target number of leading zeros after applying double_sha256.
If you are asking about the theory, here is a link to understand step by step how to build a header. I've never found anything giving a better explanation to start with :
https://medium.com/fcats-blockchain-incubator/understanding-the-bitcoin-blockchain-header-a2b0db06b515
It's just the theory behind the process for bitcoin. In reality folks use dedicated hardware (asics) and thousands of them to have any chance of succeeding before the others. The discussion in this post was about the probability of success.