2 ms·
> Does the math to calculate a coin change based on... price? Indirectly. > "the mathematical problem" The mathematical problem is producing blocks. A block
by Nursie 8y ago
> Does the math to calculate a coin change based on... price?
Indirectly.
> "the mathematical problem"
The mathematical problem is producing blocks. A block is a collection of transactions and a bit of metadata, including the address which gets the block reward. The block is hashed along with a counter or random factor (nonce), which is manipulated to try to find a sha-256 output with a certain number of leading 0 bits. The number of zeroes required by the network is the difficulty (this may be somewhat oversimplified).
Hashing has costs, hardware and power mostly. When the price of BTC rises such that the expected income is greater than the expected costs, people switch on more equipment and the network hashrate goes up.
As the hashrate goes up, the difficulty is adjusted by the network in order to keep the new block finidng time at about 10 minutes. If the price falls, miners find it unprofitable, go offline, the hashrate drops and then the difficulty also drops to keep the block time about the same. In this way the costs and rewards balance out.
But this also means that as the price of BTC rises, so does its (already huge) power consumption.