Bitcoin mining is a peer-to-peer process of adding data into Bitcoin’s public ledger in order to verify and secure a contract. Groups of recorded transactions are gathered in blocks and then added into the Bitcoin blockchain. Bitcoin mining requires a lot of resources to protect the network from the possibility of altering past transaction data by making all attempts in changing blocks inefficient for the intruder. Bitcoin mining is rewarded by the network through transaction fees and subsidies of new coins to encourage miners to spend their resources on mining new Bitcoin blocks. As Bitcoin mining is increasingly difficult, it has become impossible to attempt mining as an individual. As a result, most Bitcoin mining is being done by mining pools, which include several participants sharing their reward. Bitcoin mining is controversial, as it is a great tool for securing transactions but complicating the scaling of the network. 

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:
The best mining sites were the old fruit warehouses—the basin is as famous for its apples as for its megawatts—but those got snapped up early. So Miehe, a tall, gregarious 38-year-old who would go on to set up a string of mines here, learned to look for less obvious solutions. He would roam the side streets and back roads, scanning for defunct businesses that might have once used a lot of power. An old machine shop, say. A closed-down convenience store. Or this: Miehe slows the Land Rover and points to a shuttered carwash sitting forlornly next to a Taco Bell. It has the space, he says. And with the water pumps and heaters, “there’s probably a ton of power distributed not very far from here,” Miehe tells me. “That could be a bitcoin mine.”

This is the most basic version of dividing payments. This method shifts the risk to the pool, guaranteeing payment for each share that’s contributed. Thus, each miner is guaranteed an instant payout. Miners are paid out from the pool’s existing balance, allowing for the least possible variance in payment. However, for this type of model to work, it requires a very large reserve of 10,000 BTC to cover any unexpected streaks of bad luck.
Bloomberg reported that the largest 17 crypto merchant-processing services handled $69 million in June 2018, down from $411 million in September 2017. Bitcoin is "not actually usable" for retail transactions because of high costs and the inability to process chargebacks, according to Nicholas Weaver, a researcher quoted by Bloomberg. High price volatility and transaction fees make paying for small retail purchases with bitcoin impractical, according to economist Kim Grauer. However, bitcoin continues to be used for large-item purchases on sites such as, and for cross-border payments to freelancers and other vendors.[136]

That constraint is what makes the problem more or less difficult. More leading zeroes means fewer possible solutions, and more time required to solve the problem. Every 2,016 blocks (roughly two weeks), that difficulty is reset. If it took miners less than 10 minutes on average to solve those 2,016 blocks, then the difficulty is automatically increased. If it took longer, then the difficulty is decreased.
In January 2009, the bitcoin network was created when Nakamoto mined the first block of the chain, known as the genesis block.[18][19] Embedded in the coinbase of this block was the following text: "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks."[10] This note has been interpreted as both a timestamp and a comment on the instability caused by fractional-reserve banking.[20]:18