by StringyBob · 8y ago · 0 comments
If there is a sudden insta-crash in bitcoin value, is there a point where miners just won't bother anymore?
If the mining energy cost is higher than the value of the bitcoin mined, doesn't it become un-economical and the whole block-chain seizes up? 'Someone will invent a more efficient method' doesn't seem a reasonable justification. If a major crash occurs would the route out be a fork to a variant where mining is reset to be easier/cheaper?
*edit - aha I see the mining difficulty can go up or down over time: https://en.bitcoin.it/wiki/Difficulty
edit2 - I was thinking of 'halving'. The reward (in number of bitcoins) for mining a block will halve over time, but not necessarily the difficulty or value of the bitcoin. https://www.coindesk.com/making-sense-bitcoins-halving/
However, there's a really fun corner case failure mode. The difficulty is supposed to adjust about once every two weeks to make for a roughly 10 minute interval between blocks. If more power is added to the network such that the interval is, say, 9 minutes, then when the next adjustment hits, the difficulty will be bumped up by 11%.
But! That "every two weeks" thing is based on the block interval. The actual adjustment period is 2016 blocks. When blocks are mined every 10 minutes, that works out to two weeks. If they're mined faster, the network adjusts faster. If they're mined slower, the network adjusts slower.
When the changes in hash rate are slow, this is fine. But what happens if there's a sudden massive change in the hash rate? Like, what happens if the hash rate somehow changes by a factor of a thousand in a brief period?
If it goes up by a factor of a thousand, then the network will start mining blocks roughly every 0.6 seconds. Within about 20 minutes, the 2016 block interval will hit and the difficulty will also go up by a factor of 1000, then everything continues as usual. No problem.
The problem is if the hash rate goes down by a factor of a thousand. Then the network will start mining blocks roughly once a week. The difficulty will readjust to bring that back down to 10 minutes... eventually. But the interval to the next readjustment is measured in blocks! Let's say you're halfway through the adjustment period when this crash happens, so you have 1008 blocks to go before the next adjustment. That would have taken about a week, but now it will take about twenty years! Unless you can get the hash rate back up substantially, the network will be in extreme slow mode for a long time.
http://bitcoinandtheblockchain.blogspot.com/2017/08/chain-de...
https://cointelegraph.com/news/how-close-did-bitcoin-get-to-...