What's the matter with Ethereum mining
do you remember what the consensus mechanism of bitcoin is? The consensus mechanism of bitcoin is pow. To put it simply, the more work you do, the higher the amount of computation you pay, the more likely you will be the first to find the correct hash value, and the more likely you will be rewarded with bitcoin
however, there are some defects in the pow of bitcoin, that is, it is too slow to process transactions, and miners need to constantly collide hash values through calculation, which is costly and inefficient. Friends who are interested in blockchain knowledge should see such a saying:
in order to make up for the deficiency of bitcoin, Ethereum has proposed a new consensus mechanism, called POS (this is the abbreviation of English, which means "proof of equity", also translated into "proof of equity")
POS simply means the same as its literal meaning: equity, equity. The more currency you hold, the more equity you have, the higher your equity
Ethereum's POS means that the more money you hold, the longer you hold it, the less difficult it will be to calculate and the easier it will be to mine
in the initial setting of Ethereum, Ethereum hopes to build a relatively stable system by using POW in the early stage, then graally adopt POW + POS, and finally completely transition to POS. So, it's true that the consensus mechanism of Ethereum is POS, but POS is only a plan or goal at the beginning of Ethereum's release. At present, Ethereum has not yet transitioned to POS, and the consensus mechanism adopted by Ethereum is still pow, that is, the pow of bitcoin, but it is slightly different from the pow of bitcoin
the amount of information here is a bit large,
the first information point is that the consensus mechanism currently adopted by Ethereum is also pow, but it is slightly different from the pow of bitcoin. So, what's the difference between the pow of Ethereum and bitcoin: in short, the mining difficulty of Ethereum can be adjusted, but the mining difficulty of bitcoin can't be adjusted. Just like our college entrance examination, because the teaching situation and the number of students in different provinces are not the same, so the college entrance examination is divided into national papers and provincial independent proposition
Ethereum said that I am in favor of the topic by region. Bitcoin said: No, it must be the same volume in the whole country. The difficulty is the same for everyone
the popular explanation is that bitcoin uses computer computing power to do a lot of hash collisions, enumerate various possibilities to find a correct hash value. The Ethereum system has a special formula to calculate the difficulty of each block. If a block is verified faster than the previous block, Ethereum protocol will increase the difficulty of the block. By adjusting the block difficulty, the time needed to verify the block can be adjusted
according to the Ethereum protocol, the dynamic adjustment method of difficulty is to make the time interval of creating new blocks in the whole network 15 seconds, and the network uses 15 seconds to create blockchain. In this way, because the time is too fast, the synchronization of the system is greatly improved, and it is difficult for malicious participants to launch 51% (that is, more than half) of the computing power to modify historical data in such a short time
the second information point is: in the initial setting of Ethereum, we hope to achieve the transition from POW to
POS through phased upgrade
dating back to 2014, at the beginning of Ethereum's launch, the team announced that the launch of the project would be divided into four stages, namely, Froniter, homestead, metropolis and serenity. In the first three stages, the consensus mechanism adopts pow (workload proof mechanism), and in the fourth stage, it switches to POS (equity proof mechanism)
on July 30, 2015, the first phase "frontier" of Ethereum was officially released. This phase is only suitable for developers. Developers can write smart contracts and decentralized application DAPP on Ethereum network, and miners begin to enter Ethereum network to maintain network security and get Ethereum coins. The leading-edge version is similar to the beta version, proving whether the Ethereum network is reliable or not
on March 14, 2016, Ethereum entered the second stage of "homeland". In this stage, Ethereum provides the wallet function, so that ordinary users can easily experience and use Ethereum. There is no obvious technology improvement in other aspects, but it shows that Ethereum network can run smoothly
in September 2017, Ethereum has reached the third stage of "metropolis"“ "Metropolis" is composed of Byzantine and Constantinople. The goal of this stage is to introce the hybrid chain mode of POW and POS, so as to prepare for the smooth transition from POW to POS. This is the latest popular "Ethereum Constantinople upgrade". In the Constantinople upgrade, Ethereum will make some changes to the underlying protocols and algorithms to lay a good foundation for the implementation of POW and
POS
how much reward will Ethereum get for mining? Miners who win the block creation competition will get the following income:
1. Static reward, 5 ethereums
2. The fuel cost in the block, i.e. gas, we talked about in the last issue
3. As a part of the block, it includes the extra reward of "Uncle block". Uncle is uncle of uncle, and each uncle block can get 1 / 32 of the mining reward as a reward, that is, 5 times 1 / 32, which is equal to 0.15625 ethereums. Here, let's briefly explain the concept of "TERT block". The concept of "TERT block" was proposed by Ethereum. Why should we introce the concept of TERT block? This also starts with bitcoin. In the bitcoin protocol, the longest chain is considered absolutely correct. If a block is not part of the longest chain, it is called a "orphan block". An isolated block is a block, which is also legal, but it may be found later, or the network transmission is slower, and it does not become part of the longest chain. In bitcoin, the solitude is meaningless and will be discarded later, and the miners who find the solitude will not receive mining related rewards
however, Ethereum does not think that isolated blocks are worthless, and Ethereum system will give rewards to miners who find isolated blocks. In Ethereum, isolated blocks are called "Uncle blocks", which can contribute to the security of the main chain. Ethereum's ten second block interval is too fast, which will rece the security. By encouraging the use of tertiary blocks, the main chain can obtain more security guarantees (because the isolated block itself is legal). Moreover, paying the tertiary block can also stimulate the miners to actively mine and actively use tertiary blocks. Therefore, Ethereum thinks that it is valuable.
Bitcoin uses SHA-256 encryption algorithm. When mining, it competes with computing power. In order to improve computing power, bitcoin has gone through four stages: CPU mining, GPU mining, FPGA mining and now ASIC mining machine mining, and the degree of specialization is getting higher and higher
Ethereum uses the ethash encryption algorithm. In the process of mining, it needs to read the memory and store the DAG file. Because the bandwidth of each read memory is limited, and the existing computer technology is difficult to have a qualitative breakthrough in this problem, so no matter how to improve the computing efficiency of the computer, the memory read efficiency will not be greatly improved. Therefore, in a sense, Ethereum's ethash encryption algorithm is ASIC resistant.
different encryption algorithms lead to great differences in mining equipment and computing power between bitcoin and Ethereum
at present, bitcoin mining equipment is mainly ASIC mining machine with a very high degree of specialization. The maximum computing power of a single mining machine is 110t / s, and the scale of computing power of the whole network is more than 120eh / s
the main mining equipment of Ethereum is video card miner, and there are very few specialized ASIC miner. On the one hand, the "ASIC resistance" of Ethereum mining algorithm improves the threshold of developing ASIC miner. On the other hand, after Ethereum is upgraded to 2.0, the consensus mechanism will be transformed into POS, and the miner can not continue mining
compared with the ASIC miner, the graphics card miner has two orders of magnitude difference in computing power. At present, the computing power of mainstream graphics card miner (8 cards) is about 420mh / s, and that of Ethereum is about 230th / s.
from the time dimension of the past two years, bitcoin's computing power of the whole network is growing rapidly, while Ethereum's computing power of the whole network is growing relatively slowly
The ASIC mining machine of
bitcoin is monopolized by several major mining machine manufacturers, and miners can only buy it from the market; Although the graphics card miner of Ethereum is also manufactured by a special miner, the miner can buy accessories from the market and assemble them according to his own demand
>It's the currency of numbers. It's a language display:none “class=” http://imgsrc..com/forum/pic/item/.jpg "Data u.src =" http://www.iqiyi.com/w_19rvbs8dv1.html the United Nations data u.swf= http://player.video.qiyi.com//0/0/w_19rvbs8dv1.swf-pid=0-ptype=0-albumId=9412556609-tvId=9412556609-cnId=30-autoplay=1-qitanId=0-isDrm=0-isPurchase=0 "Data u'title =" data / DEM = "data / itemid ="
hope to adopt