How to calculate the mining cost
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.
1. Machine cost: the cost of purchasing mining machine
2. Power cost: the power cost consumed by machine mining
3. Auxiliary costs: personnel maintenance, network, cable consumables, heat dissipation, etc.
for a simple example, take the mining machine of ant S9, which consumes less power on the market, for example, the calculation power is 13.5T, and the power consumption is 1400W
when the mining machine runs for 24 hours: 1.4kw * 24 = 33.6 degrees
Shenma m3, which consumes more power on the market, has a calculation power of 11.5t, The power consumption is 2150w
under 24-hour operation, the power consumption of a single machine is 2.15kw * 24 = 51.6oc
which is roughly equivalent to the power consumption of energy-saving air conditioning, but the bitcoin miner needs 24-hour uninterrupted operation, the power consumption of a single machine is very large after a year's calculation, and the step price cost of household electricity is too high, When the market is not good, the income may not be enough for the electricity expenditure, so at present, mining will choose to be hosted in the mine, which can get cheap electricity and rece the cost price of mining. The price below 30% is the ideal price, which can keep the price of bitcoin falling to a low level, and there is still some income< According to the current mining difficulty of bitcoin:
BTC revenue per ton: 1th / s * 24h = 0.00007087btc
calculated by the comprehensive 12t machine computing power, the daily output is:
0.00007087t * 12t = 0.00085044btc
then the time required for a single machine to dig a BTC:
1 / 0.00085044 = 1175 days
the time required for ten mining machines to dig a BTC:
1 / 0.0085044 = 117 days
100 days In other words, according to the current difficulty, it takes about three years for a single miner to proce a bitcoin, 3.9 months for ten miners to dig a bitcoin, and 11.7 days for a hundred miners to dig a bitcoin. The cost of a single miner is about 8500, Ten are around 85000, one hundred is 850000, less than one million, and one month's income is more than two bitcoins. According to the current price of bitcoin, the price is about 120000. So, although the income of bitcoin mining is not as good as before, it is still considerable compared with other investment projects
however, these benefits do not include decting the cost of electricity charges and later maintenance of machines, so the premise of mining is to find a mine with low electricity charges. If the quantity is large, we need to find a safe, reliable and stable mine. What's more, we need cheap electricity to lower the cost price.
Hello, according to my experience, 1. First set up the rack, then fix the graphics card, and then plug the CPU and fan, memory, SSD hard disk into the slot of the motherboard, and connect the power supply and motherboard power supply
I hope my suggestions can help you, thank you
You can't dig in a day. It takes 2000 years
the global unified computing difficulty of bitcoin is 2621404453 (expected to change in two days). It takes more than 2000 years for a 2.5GHz CPU to work out a bitcoin
in order to make the graphics card fully loaded for a long time, the power consumption will be quite high, and the electricity bill will be higher and higher. Many professional mines at home and abroad are operated in areas with extremely low electricity charges, such as hydropower stations, while more users can only mine at home or in ordinary mines, so the electricity charges are not cheap. Even in a certain residential area in Yunnan, there was a case of crazy mining, which led to a large area trip of the residential area, and the transformer was burned
extended data:
bitcoin network generates new bitcoin through "mining". In essence, the so-called "mining" is to use computers to solve a complex mathematical problem to ensure the consistency of bitcoin network distributed accounting system
bitcoin network will automatically adjust the difficulty of mathematical problems, so that the whole network can get a qualified answer about every 10 minutes. Then bitcoin network will generate a certain amount of bitcoin as block reward to reward the person who gets the answer
when bitcoin was born in 2009, block rewards were 50 bitcoins. Ten minutes after its birth, the first 50 bitcoins were generated, and the total amount of money at this time is 50. Then bitcoin grew at a rate of about 50 every 10 minutes. When the total amount reaches 10.5 million (50% of 21 million), the block reward will be halved to 25
when the total amount reaches 15.75 million (5.25 million new output, i.e. 50% of 1050), the block reward will be further halved to 12.5. The monetary system used to have no more than 10.5 million in four years, after which the total number will be permanently limited to about 21 million
as a middle-aged miner for 13 years, let's talk about the feeling of mining before.
I bought four mining machines in the past. Bitcoin uses CPU and I'm not familiar with it, so I use the form of buying graphics card to dig Wright's coin.
the first one is a simple double card mining machine, not a mining machine strictly speaking, but a double 7950 machine, At that time, I thought about digging for a while. If I didn't make money, I could still play games by myself. As a result, I found that the efficiency was really not high. Later, I used to dig some dog money and play with it.
the second one was the popular 6-card miner in those years. At that time, there was a powerful motherboard, which could run for 6 yuan by connecting with the PCI adapter and changing the BIOS. At that time, I could dig a lot of Wright's money every day with this machine, It's a pity that there are too many people digging, so it took more than 80 days to dig the coins. The third and the fourth are professional mining machines. At that time, the new chips were used to mass proce mining machines. Although they were expensive, the power consumption decreased a lot. It took about a year to dig, In the end, he retired, g up other counterfeit coins for a while, and then sold them.
generally speaking, many websites have no credibility at all in the past few days. They actually know what the concept of excessive increase in computing power is after digging up the money.
when ZF suppressed it, the assets immediately shrank by nearly 70%, but they still didn't sell because of their faith, On the contrary, after selling the miner, I bought some coins and put them in my hand. When I bought 100, I g them and only bought 15. Hey, the miner was sealed and put under the bed. After waiting for three years, I found that it rose again. This year, when bitcoin rose to 2W, I sold some Leyte coins and paid the down payment. Almost 300 of them were sold. Now it seems that the highest is 380, Ha ha
now I still have some money in my hand, and I plan to hold it for a long time, but I won't dig any more. However, I still have a lot of orders with our first-class suppliers. In the past two months, I sold nearly 150 cards, and the more I sold, the more I sold. Some cards are about to double, which is even crazier than that in 2013, The existence of e-money has its own value in the end, but it does not deny that there are so many speculators who come in to fight. There are indeed those who pursue the price. After the boom, there will be a wave of leeks cutting. In the final analysis, bitcoin is just an investment. Everyone feels different about the risk. The strength of big funds is still strong, and it is inevitable for retail investors to be cut, But it's better than A-share at least.
mining is not a good thing. The big miners are in the remote areas with low electricity charges, many mining machines and low cost. Most people dig at home, and that's just a little fuss.
finally, it's not a good thing to grow too fast. Those who are confident can come in and show their operation. If they don't have much ability, don't come in, Only by routine
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.