The mining operation for ethereum as well as Bitcoin is same. When the transaction is carried out for each block computers are used by minors in repeat mode rapidly to predict the answer for the query until and unless one among them gets an answer. In technical terms, the block has a one-of-a-kind header metadata which is run by miners across the hash function that will in return give a specified length, scattered series of random looking numbers and letters. This has a function that will change only the nonce value that will affect the emerging value of the hash.
Ether will be given to the miner after the miner is able to detect and match the hash with the present target. Further, the block is transmitted over the individual node’s network where it is validated and added to their own edition of the ledger. During this process, if miner 2 happens to find matching hash, miner 1 which was previously working on this block will abort the process and the same process is repeated on the succeeding block.
In no way you can solve this riddle by cheating and get the answers. One cannot pretend to do the process and come up with the answer for this. Because of which this procedure of solving is known as proof-of-work. Every node performs verification process because of which within a fraction of seconds you can check if the value for the hash is appropriate or not.
The speed at which miners are able to find blocks for processing is about 12 to 15 seconds. Sometimes when the miner begins solving, whether it starts solving faster or slower if it is not able to finish the task within 12 to 15 seconds the algorithm performs adjustments on its own by adjusting the complication in the riddle so that it can finish within the given time. Get the facts.
Every miner is rewarded in a random manner with ether and the profits completely depend on how lucky they are and the quantity of computational strength given to it. This proof-of-work algorithm that is specifically used for ethereum are known as “ethash” it has been discussed earlier that ethereum is planning to change its ethash algorithm which is proof-of-work algorithm to proof-of-stake algorithm. And therefore purchasing ASIC which is very expensive for increasing the difficulty level of mining and memory will not be of use.