Dieth mining
Ethernet mining tutorial
1. Create a new folder on the hard disk, which is better than C: eth. Then all the mining software is stored here
2. Download the following software
1) geth -- select geth win download and unzip
2) ethernet -- download and unzip to the same folder and rename it as "miner"
3) ethereum wallet -- Download the win Ethereum wallet and unzip it and rename it as "wallet"
install all the software
3 Open the command prompt (click win and R at the same time, or click Start menu and enter CMD). The command prompt is a command line parser that allows you to execute command input software in the operating system
After
, you will have Ethereum wallet. But there is no balance, so next you need to build an ethminer. It's time to minimize your wallet
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.
hope to be useful to you, please adopt!
many new users believe that the sole purpose of mining is to generate ether in a way that does not require a central issuer (see our guide "what is ether?"). It's true. The token of Ethereum is proced in the process of mining, with a mining rate of 5 Ethereum coins per piece. But mining is at least as important. Usually, banks are responsible for keeping accurate records of transactions. They make sure that money is not created out of thin air and that users don't cheat and spend money many times. However, blockchain introces a new way to keep records, the whole network instead of intermediary, to verify transactions and add them to the public ledger
Ethereum mining
although "no trust" or "trust minimization" monetary system is the goal, there are still people who need to ensure the security of financial records and ensure that no one cheats. Mining is one of the innovations that makes decentralized records possible. Miners have reached a consensus on the history of transactions in terms of preventing fraud (especially double spending on ether) - an interesting issue that hasn't been addressed before the decentralized currency works on the blockchain. While Ethereum is looking at other ways to reach a consensus on the effectiveness of the deal, mining currently keeps the platform together
how mining works
today, the mining process of Ethereum is almost the same as that of bitcoin. For each transaction, the miner can use the computer to guess the answer repeatedly and quickly until one of them wins. More specifically, the miner will run the unique header metadata (including time stamp and software version) of the block through the hash function (which will return a fixed length, unordered string of numbers and letters, which appears to be random), changing only the 'nonce value', which will affect the hash value of the result
if the miner finds a hash that matches the current target, the miner will be granted ether and broadcast the block across the network for each node to verify and add to their own ledger . If miner B finds the hash, miner a stops working on the current block and repeats the process for the next block. It's hard for miners to cheat in this game. There is no way to fake the work and come up with the right answer to the puzzle. That's why solving puzzles is called "proof of work."
on the other hand, others have little time to verify whether the hash value is correct, which is exactly what each node does. About every 12-15 seconds, a miner finds a stone. If the miner starts to solve the puzzle faster or slower than this, the algorithm will automatically re adjust the difficulty of the problem so that the miner can rebound to about 12 seconds of solution time
miners earn these ethers randomly, and their profitability depends on their luck and the computing power they put in. The specific workload verification algorithm used by Ethereum is called "ethash", which aims to require more memory, making it difficult to mine with expensive ASIC. Special mining chips are now the only profitable way to mine bitcoin
in a sense, ethash may have achieved this goal successfully, because dedicated ASIC is not available for Ethereum (at least not yet). In addition, as Ethereum aims to shift from proof of work mining to "proof of equity" (which we will discuss below), buying ASIC may not be a wise choice because it may not prove useful for a long time< However, Ethereum may never need miners. Developers plan to abandon proof of work, the algorithm currently used by the network to determine which transactions are valid and protect them from tampering to support proof of equity, which is guaranteed by token owners. If and when the algorithm is launched, proof of equity can become a means to achieve distributed consensus, and the consensus uses less resources.
a PC needs to be configured to run the mining program. The main hardware includes: graphics card, motherboard, power supply, CPU, memory and hard disk
new currencies are usually solved through open market operations. In other words, the central bank makes its own money flow out by buying Treasury bonds (issued by the Ministry of Finance), so that the money flows to commercial banks, and commercial banks make money circulate in the society through lending
first of all, understand currency: today's commonly referred to as currency is the paper money in our pocket. It is a medium and tool to facilitate the exchange and circulation of goods under the commodity economy. It has no value in itself and is issued and forced to circulate by the national bank. When you go shopping in China with us dollars, the shop owner will treat us dollars as a piece of waste paper, because US dollars must be converted into RMB through the central bank to be used in China
currencies of different countries cannot be circulated in different countries. Now, with the global economic integration, there are certain economic exchanges between countries. In order to solve the trade and currency problems between different countries, two concepts of foreign exchange and foreign exchange reserve are involved
as we all know, a country's wealth is not measured by the amount of its currency issued or owned, but by the amount of its commodities, which are the material needs of people's life, rather than money, that is, a country's proction capacity and gross domestic proct
trade between countries can be divided into export and import as follows:
in the case of export, if US dollar is used as foreign currency, that is to say, Chinese multinational enterprises sell their procts in the United States in exchange for the currency of other countries. For Chinese people, foreign currency is not allowed to circulate in the Chinese market, Therefore, in the Chinese market, foreign currency is equivalent to a pile of waste paper. Therefore, it is useless for Chinese export enterprises to sell foreign currency to the national bank to exchange it for RMB, and the state holds foreign currency. People's wealth is ultimately reflected in their material enjoyment, and money is only an intermediary and tool for material exchange, Our domestic enterprises give the goods they proce to the United States, while the United States only gives us foreign currency (bonds), thus forming a debt relationship: that is, China is the creditor, foreign countries (the United States) are the debtor, and foreign exchange (US dollars) is the debt relationship certificate
for the import situation, foreign currency reserves will not be affected. For example, if foreign businessmen sell foreign goods at home to earn RMB, the central bank will take the foreign exchange reserves (US dollars) to buy back RMB from foreign investors (because this part of RMB is circulating at home and is not counted as foreign exchange reserves), It may also be that foreign businessmen take RMB to their own country to exchange for their own currency, which also forms their own foreign exchange reserves (whether the actual process is like the above, I don't know, it's not studying economy, it's just speculation). Buy back is actually a hedging process (the real sense of hedging seems to be that the central bank takes foreign exchange to buy overseas). It can also be understood as follows: foreign goods are regarded as the goods proced by the central bank and sold in the domestic market. In this way, part of the foreign exchange reserve is returned to the people through the central bank, and the debt is also paid
generally, the amount of money in circulation of a country corresponds to the amount of goods proced by the country Material wealth corresponds to the amount of money)
Chinese enterprises export goods, which can be seen as: China proces too many domestic goods (that is, the corresponding currency is not enough),
domestic enterprises get foreign markets for commodity sales and exchange through the form of export, and can exchange domestic goods for foreign goods, but because of the existence of foreign currency, In fact, these foreign currencies are equivalent to the debts of foreign consumers to China's export enterprises, and these debts are uniformly assigned to the name of the national bank. This has become the country's foreign exchange reserves. The more foreign exchange reserves, the more money the state will lend. Lending is equivalent to issuing money. If a country releases too much money, it needs to issue a large amount of money, which may cause inflation (there are not enough goods, but a lot of currency in circulation). At this time, the country purchases goods from overseas through the international market, and consumes foreign goods in exchange for goods, so as to achieve the goal of stabilizing and balancing the economy. It can also be understood from another perspective that the central bank releases a large amount of money to exchange for foreign exchange reserves. The increase of this kind of money is not caused by the "invisible hand" of the market rules, but by the Central Bank of the government. If we zoom in, the increase of money will actually be inflation, and the money on the hands of the people will be devalued, The devalued part is occupied by the central bank free of charge. Therefore, it can be understood as: foreign exchange reserves are liabilities of the central bank, not assets, because it is exchanged by the central bank from the people's hands with RMB, then the people will want to cash this asset one day
as China's foreign exchange currency is mainly US dollar, once the US economy fluctuates and leads to the depreciation of US dollar, China's foreign exchange reserves will have the risk of devaluation. The devaluation of foreign exchange reserves is also the loss of China's assets< In a word, foreign exchange reserve is a kind of debt relationship between the people and other countries (reserves are not national assets, but the money of the working people), and the people, as one of the creditor's rights, transfer the creditor's rights to the National Central Bank and hang them in the name of the central bank
foreign exchange reserve refers to the foreign convertible currency held by a country's monetary authority and can be used for external payment, which acts as an international reserve asset. The amount of foreign exchange reserve mainly depends on the status of import and export, the scale of foreign debt and the actual use of foreign capital. Foreign exchange reserves are used for trade with other countries
in order to increase foreign exchange, we need to issue RMB to buy, and the supply of RMB will increase, which may cause monetary expansion in the domestic market. A certain amount of foreign exchange reserve is an important means for a country to adjust its economy and realize the economic balance at home and abroad. When there is a deficit in the balance of payments (more imports, the domestic market full of foreign goods, causing domestic monetary tightening), the use of foreign exchange reserves can promote the balance of payments; When the domestic macro-economy is unbalanced and the total demand is greater than the total supply (the consumption demand increases and the goods are not enough), we can use foreign exchange to organize imports, so as to adjust the relationship between the total supply and the total demand and promote the macro-economy balance
at the same time, when the exchange rate fluctuates, we can use the foreign exchange reserves to intervene the exchange rate and make it stable
the performance of foreign exchange reserves is to hold a kind of financial claims expressed in foreign currency, not put into domestic proction. This leads to the problem of opportunity cost, that is, if the monetary authorities do not hold reserves, they can use these reserve assets to import goods and services, increase the real resources of proction, and thus increase employment and national income, while holding reserves gives up such benefits
the increase of foreign exchange reserves should expand the money supply. If the foreign exchange reserves are too large, it will increase the pressure of inflation and increase the difficulty of monetary policy
holding too much foreign exchange reserves may also cause losses e to the depreciation of foreign exchange rate
because foreign currency can not circulate in the domestic market, the central bank not only releases a certain amount of money (through export and foreign capital) in China, but also reserves a certain amount of foreign exchange on behalf of the country. At this time, RMB is used in China, while foreign exchange itself is independent of the domestic economic operation, and is used by the central bank to maintain and increase value in the international financial market.