How to mine in Huo coin mine
Publish: 2021-04-15 11:56:56
1. When it comes to money, mining is indispensable. In ethereum network, if you want to get Ethereum, you also need to mine it. When it comes to mining, there must be a consensus mechanism
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.
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.
2. The miner background is configured with three mining addresses, the first is the main mine pool address, and the second two are the standby mine pool address. In order to ensure the miner's mining income, the miner has set up an automatic detection mechanism of the standby mine pool, that is, the miner itself will continuously detect whether the standby mine pool is connected,
the miner continuously detects the availability of the standby mine pool, During this period, the main ore pool has been connected, so it will not affect your mining income.
the miner continuously detects the availability of the standby mine pool, During this period, the main ore pool has been connected, so it will not affect your mining income.
3. After logging in to the account, click account settings - add sub account. Create a sub account and set the mining currency Mining account number must be unique and cannot be the same as other mining projects)
4. Fire money does not mine, only spot, contract, off-site
5. The mine pool is a team mining server. Corresponding mine pool address and server address. Bitcoin generates a block every 10 minutes, and there will be tens of millions of people competing. In the end, only one person owns the block, and no one else receives anything
you may have to dig for 5 years to get a block. Team mining is that once anyone in the team gets a block, they will divide the currency in the block according to their performance, so that they can get bitcoin quickly.
you may have to dig for 5 years to get a block. Team mining is that once anyone in the team gets a block, they will divide the currency in the block according to their performance, so that they can get bitcoin quickly.
6. Hello, large scale mining needs a special site with good ventilation, moderate temperature and humidity, stable supply and reasonable price of electricity, management personnel who know bitcoin and mining, and technical personnel who are proficient in power line maintenance and network maintenance.
7. Hello, the mine pool is a team mining server. Corresponding mine pool address and server address. Bitcoin generates a block every 10 minutes, and there will be tens of millions of people competing. In the end, only one person owns the block, and no one else receives anything
you may have to dig for five years to get a block. Team mining is that once anyone in the team gets a block, they will divide the currency in the block according to their performance, so that they can get bitcoin quickly.
you may have to dig for five years to get a block. Team mining is that once anyone in the team gets a block, they will divide the currency in the block according to their performance, so that they can get bitcoin quickly.
8.
>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 ="
9. First, we need to find a stable bitcoin mine pool which is easy to operate, and then connect to the designated server to mine through the mining client software. Take "BTC guide" website as an example. First open this website and click the user registration on the left. The registration process is relatively simple. You can enter the English user name, password and confirmation password
2 after successful registration, we will see a message like "your account has been successfully registered and logged in!" on the web page, It means that we have successfully registered and logged in
3 we can click the "dashboard" button in the upper left corner to see the whole monitoring status of the account
note: in this monitoring dashboard, we are most concerned about "total earnings", which is the bitcoin earned by our current account. In the future, as long as we open the website and enter the monitoring dashboard, we can see the relevant information of our account
4 next, please click "Settings" in the navigation bar of the page. In the settings page, we can set the e-mail address, bit wallet address, change the password, etc.
5 if we set the e-mail address in the account, if we forget the password or steal it in the future, we can restore the password through the set e-mail. First, enter our common email address in the "email address" column, and then click the "change" button
6. Next, a confirmation email will be displayed on the page to confirm that it has been sent to our previously set email
7. Then we open our email and find the email sent by BTC guide. Click the confirmation link, and then the page will show that our email has been successfully set
8. If we set email in the account setting, we can also set email notification for the behavior of mining miners. Find the "idle warnings" column on the setting page, click the drop-down list, select the time when you want to send the email, and then click the "change" button on the right. When we set 10 minutes later, if a miner stops mining, the system will automatically send a notification email to our email after 10 minutes. After receiving the email, we knew that the miner was on strike
9 in addition, we are more concerned about the "bitcoin wallet", that is, the wallet address. You don't need to set this address first. It's not too late for me to fill in when I really get bitcoin
10 after the account is set up, we need to set "worker". What is a worker? This is the login account name we will use later on the bitcoin mining client. The system will create a miner name for us by default. The miner name is composed of our registered account name, an underline and a number. For example, our registered account is XXX, and the first miner's name is "XXX"_ 1 "
11 if we want to set multiple miner names, enter a number such as" 2 "in the" create worker "column, and then click the" create "button to add a new miner's account name
12 in the worker settings page, we can also set the mining payment mode of the mine account separately. Payment method, i.e. mining payment method. There are two types to choose from, PPS and PPLNs. The difference lies in the mining mode and handling charge. The handling charge of PPS is 7.5%, while that of PPLNs is 3%. The system adopts PPLNs by default. If you want to change it, please click the "change" button under the payment method
13 in addition, we can also choose the difficulty of mining mode. If our computer has multiple graphics card GPUs or some special machines, we can set the miner's account name under the minimum difficulty
Step 2, download the mining client software
1 after we complete the registration setting, Next, please click "support" in the page navigation menu, and we will see the download link of the client< There are two types of mining client software:
bfgminer: command line operation interface, which can be downloaded directly
cgminer: it is also operated in the command line format, but the download steps are too complicated
let's take bfgminer as an example and click download as shown in the figure
2 then it will jump to the download page of mining tools. There are two formats of mining tools, one is 32-bit system, the other is 64 bit system. According to the number of system bits, download the corresponding tool version
3. The client size of mining tool is less than 5m, which is a zip compressed file. When the download is complete, locate and open the file. Click the right mouse button and select the "" option
4 here, I take paste extraction to the desktop as an example
Step 3, mining client software detailed settings
1 after opening the mining directory, double-click to open the "bfgminer" file under the directory
2 next, look at the BFG minier window and enter the address of the mine pool at the URL. The pool address can be seen in the BTC guide's support page, such as stratum. Btcguild com:3333 , press enter key
3, and then enter the miner's name set on BTC guide website after the user name, press enter key
4, and then enter at will in the password, as shown in the figure
5. Finally, you can see that many numbers are changing, It means mining. It is worth noting that the places marked in the figure indicate the speed of the current machine button
6 in addition to the current mining speed on the mining client software, we can also see the specific mining speed of each miner in the "active worker summary" list on the "dashboard" page of BTC guide website
7 If you want to close the mining tool, you can directly x drop it, You can also directly press the Q key to exit. If you want to open more, you can open another mining tool in the BFG miner directory< Step 4: cgminer command line client software
1 if you really want to mine, the official recommends that we use "cgminer", that is, to run it at the command prompt. Click "support" on BTC guide page, then click "cgminer" download link page, select the corresponding system version
2, then jump to cgminer download page and click the link as shown in the figure
3 and then select a version of cgminer. Here I download a Windows version as an example.
4 take the Windows version of cgminer as an example. After the download, unzip it to the computer.
5 open the cgminer directory, find "cgminer"
6. Double click "cgminer" with the mouse, and a command-line window will pop up, prompting us to enter the URL address of the connection server. Enter "stratum. Btcguild com:3333 ”, press the Enter key on the keyboard
7, and then prompt us to enter "user name", that is, the account name of the miner. Press the Enter key on the keyboard
8, and then enter the password. Press the Enter key on the keyboard
9, and wait for a moment, When the client and the service establish a connection, the machine will start mining
10 to quit mining, please press the "Q" key on the keyboard in the window
tools / raw materials
PC with independent graphics card
precautions
if you are using cgminer, the graphics card must support the display of general computing standard, otherwise you will not be able to mine.
2 after successful registration, we will see a message like "your account has been successfully registered and logged in!" on the web page, It means that we have successfully registered and logged in
3 we can click the "dashboard" button in the upper left corner to see the whole monitoring status of the account
note: in this monitoring dashboard, we are most concerned about "total earnings", which is the bitcoin earned by our current account. In the future, as long as we open the website and enter the monitoring dashboard, we can see the relevant information of our account
4 next, please click "Settings" in the navigation bar of the page. In the settings page, we can set the e-mail address, bit wallet address, change the password, etc.
5 if we set the e-mail address in the account, if we forget the password or steal it in the future, we can restore the password through the set e-mail. First, enter our common email address in the "email address" column, and then click the "change" button
6. Next, a confirmation email will be displayed on the page to confirm that it has been sent to our previously set email
7. Then we open our email and find the email sent by BTC guide. Click the confirmation link, and then the page will show that our email has been successfully set
8. If we set email in the account setting, we can also set email notification for the behavior of mining miners. Find the "idle warnings" column on the setting page, click the drop-down list, select the time when you want to send the email, and then click the "change" button on the right. When we set 10 minutes later, if a miner stops mining, the system will automatically send a notification email to our email after 10 minutes. After receiving the email, we knew that the miner was on strike
9 in addition, we are more concerned about the "bitcoin wallet", that is, the wallet address. You don't need to set this address first. It's not too late for me to fill in when I really get bitcoin
10 after the account is set up, we need to set "worker". What is a worker? This is the login account name we will use later on the bitcoin mining client. The system will create a miner name for us by default. The miner name is composed of our registered account name, an underline and a number. For example, our registered account is XXX, and the first miner's name is "XXX"_ 1 "
11 if we want to set multiple miner names, enter a number such as" 2 "in the" create worker "column, and then click the" create "button to add a new miner's account name
12 in the worker settings page, we can also set the mining payment mode of the mine account separately. Payment method, i.e. mining payment method. There are two types to choose from, PPS and PPLNs. The difference lies in the mining mode and handling charge. The handling charge of PPS is 7.5%, while that of PPLNs is 3%. The system adopts PPLNs by default. If you want to change it, please click the "change" button under the payment method
13 in addition, we can also choose the difficulty of mining mode. If our computer has multiple graphics card GPUs or some special machines, we can set the miner's account name under the minimum difficulty
Step 2, download the mining client software
1 after we complete the registration setting, Next, please click "support" in the page navigation menu, and we will see the download link of the client< There are two types of mining client software:
bfgminer: command line operation interface, which can be downloaded directly
cgminer: it is also operated in the command line format, but the download steps are too complicated
let's take bfgminer as an example and click download as shown in the figure
2 then it will jump to the download page of mining tools. There are two formats of mining tools, one is 32-bit system, the other is 64 bit system. According to the number of system bits, download the corresponding tool version
3. The client size of mining tool is less than 5m, which is a zip compressed file. When the download is complete, locate and open the file. Click the right mouse button and select the "" option
4 here, I take paste extraction to the desktop as an example
Step 3, mining client software detailed settings
1 after opening the mining directory, double-click to open the "bfgminer" file under the directory
2 next, look at the BFG minier window and enter the address of the mine pool at the URL. The pool address can be seen in the BTC guide's support page, such as stratum. Btcguild com:3333 , press enter key
3, and then enter the miner's name set on BTC guide website after the user name, press enter key
4, and then enter at will in the password, as shown in the figure
5. Finally, you can see that many numbers are changing, It means mining. It is worth noting that the places marked in the figure indicate the speed of the current machine button
6 in addition to the current mining speed on the mining client software, we can also see the specific mining speed of each miner in the "active worker summary" list on the "dashboard" page of BTC guide website
7 If you want to close the mining tool, you can directly x drop it, You can also directly press the Q key to exit. If you want to open more, you can open another mining tool in the BFG miner directory< Step 4: cgminer command line client software
1 if you really want to mine, the official recommends that we use "cgminer", that is, to run it at the command prompt. Click "support" on BTC guide page, then click "cgminer" download link page, select the corresponding system version
2, then jump to cgminer download page and click the link as shown in the figure
3 and then select a version of cgminer. Here I download a Windows version as an example.
4 take the Windows version of cgminer as an example. After the download, unzip it to the computer.
5 open the cgminer directory, find "cgminer"
6. Double click "cgminer" with the mouse, and a command-line window will pop up, prompting us to enter the URL address of the connection server. Enter "stratum. Btcguild com:3333 ”, press the Enter key on the keyboard
7, and then prompt us to enter "user name", that is, the account name of the miner. Press the Enter key on the keyboard
8, and then enter the password. Press the Enter key on the keyboard
9, and wait for a moment, When the client and the service establish a connection, the machine will start mining
10 to quit mining, please press the "Q" key on the keyboard in the window
tools / raw materials
PC with independent graphics card
precautions
if you are using cgminer, the graphics card must support the display of general computing standard, otherwise you will not be able to mine.
Hot content