Before even starting out with Bitcoin mining, you need to do your due diligence. The best way to do this, as we’ve discussed, is through the use of a Bitcoin mining calculator. Bear in mind that mining costs money! If you don’t have a few thousand dollars to spare on the right miner, and if you don’t have access to cheap electricity, mining Bitcoin might not be for you.
The difficulty is a number that regulates how long it takes for miners to add new blocks of transactions to the blockchain. Because the target is such an unwieldy number with tons of digits, people generally use a simpler number to express the current target. This number is called the mining difficulty. This difficulty value updates every 2 weeks to ensure that it takes 10 minutes (on average) to add a new block to the blockchain. The difficulty is so important because, it ensures that blocks of transactions are added to the blockchain at regular intervals, even as more miners join the network. If the difficulty remained the same, it would take less time between adding new blocks to the blockchain as new miners join the network. The difficulty adjusts every 2016 blocks. At this interval, each node takes the expected time for these 2016 blocks to be mined (2016 x 10 minutes), and divides it by the actual time it took. It can be calculated as follows:
Of course, by the end of 2017, the players who were pouring into the basin weren’t interested in building 5-megawatt mines. According to Carlson, mining has now reached the stage where the minimum size for a new commercial mine, given the high levels of difficulty, will soon be 50 megawatts, enough for around 22,000 homes and bigger than one of Amazon Web Services’ immense data centers. Miehe, who has become a kind of broker for out-of-town miners and investors, was fielding calls and emails from much larger players. There were calls from China, where a recent government crackdown on cryptocurrency has miners trying to move operations as large as 200 megawatts to safer ground. And there was a flood of interest from players outside the sector, including big institutional investors from Wall Street, Miami, the Middle East, Europe and Japan, all eager to get in on a commodity that some believe could touch $100,000 by the end of the year. And not all the interest has been so civil. Stories abound of bitcoin miners using hardball tactics to get their mines up and running. Carlson, for example, says some foreign miners tried to bribe building and safety inspectors to let them cut corners on construction. “They are bringing suitcases full of cash,” Carlson says, adding that such ploys invariably backfire. Adds Miehe, “I mean, you know how they talk about the animal spirits—greed and fear? Well, right now, everyone is in full-greed mode.”
Wu claims that Antbleed, which has since been patched, was only vestigial code left in by mistake when engineers were trying to build a kill switch for a customer’s own use. There was some skepticism about this explanation, but because the S9’s firmware is open source, users are confident in the patched version. Still, the discovery of it was a startling reminder of the need for diversity in the mining hardware industry.
These days, Miehe says, a serious miner wouldn’t even look at a site like that. As bitcoin’s soaring price has drawn in thousands of new players worldwide, the strange math at the heart of this cryptocurrency has grown steadily more complicated. Generating a single bitcoin takes a lot more servers than it used to—and a lot more power. Today, a half-megawatt mine, Miehe says, “is nothing.” The commercial miners now pouring into the valley are building sites with tens of thousands of servers and electrical loads of as much as 30 megawatts, or enough to power a neighborhood of 13,000 homes. And in the arms race that cryptocurrency mining has become, even these operations will soon be considered small-scale. Miehe knows of substantially larger mining projects in the basin backed by out-of-state investors from Wall Street, Europe and Asia whose prospecting strategy, as he puts it, amounts to “running around with a checkbook just trying to get in there and establish scale.”
The trick, though, was finding a location where you could put all that cheap power to work. You needed an existing building, because in those days, when bitcoin was trading for just a few dollars, no one could afford to build something new. You needed space for a few hundred high-speed computer servers, and also for the heavy-duty cooling system to keep them from melting down as they churned out the trillions of calculations necessary to mine bitcoin. Above all, you needed a location that could handle a lot of electricity—a quarter of a megawatt, maybe, or even a half a megawatt, enough to light up a couple hundred homes.
The unit of account of the bitcoin system is a bitcoin. Ticker symbols used to represent bitcoin are BTC[b] and XBT.[c] Its Unicode character is ₿.:2 Small amounts of bitcoin used as alternative units are millibitcoin (mBTC), and satoshi (sat). Named in homage to bitcoin's creator, a satoshi is the smallest amount within bitcoin representing 0.00000001 bitcoins, one hundred millionth of a bitcoin. A millibitcoin equals 0.001 bitcoins, one thousandth of a bitcoin or 100,000 satoshis.
Each block that is added to the blockchain, starting with the block containing a given transaction, is called a confirmation of that transaction. Ideally, merchants and services that receive payment in bitcoin should wait for at least one confirmation to be distributed over the network, before assuming that the payment was done. The more confirmations that the merchant waits for, the more difficult it is for an attacker to successfully reverse the transaction in a blockchain—unless the attacker controls more than half the total network power, in which case it is called a 51% attack.