Bitcoin Forum
December 10, 2016, 10:28:35 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Can the difficulty decrease if people stop mining?  (Read 1618 times)
falsifian
Newbie
*
Offline Offline

Activity: 2


View Profile
April 18, 2011, 07:10:39 PM
 #1

I am trying to understand the way in which the block generation difficulty is adjusted.  If people stop generating blocks, is it possible for the difficulty to decrease without 2016 blocks going by?  If not, then from what I understand, it seems like the following undesirable situation could arise:

0. The value of one BTC increases dramatically (say to 100 USD).
1. More people start mining, and so the difficulty increases a lot, and the electricity cost to generate a block settles at a bit less than 5000 USD as expected.
2. The value of one BTC decreases (for unrelated reasons) to 10 USD.
3. Almost everyone stops mining, because it's not worth spending 5000 USD to generate a block.  Now we only get (say) one block per day from a few people who are mining just for fun.
4. If the value of a BTC doesn't rise again, it takes about 5 years (in this case) for 2016 blocks to go by so that the difficulty can go down.

Am I missing something?  Thanks for reading.
1481408915
Hero Member
*
Offline Offline

Posts: 1481408915

View Profile Personal Message (Offline)

Ignore
1481408915
Reply with quote  #2

1481408915
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481408915
Hero Member
*
Offline Offline

Posts: 1481408915

View Profile Personal Message (Offline)

Ignore
1481408915
Reply with quote  #2

1481408915
Report to moderator
1481408915
Hero Member
*
Offline Offline

Posts: 1481408915

View Profile Personal Message (Offline)

Ignore
1481408915
Reply with quote  #2

1481408915
Report to moderator
falsifian
Newbie
*
Offline Offline

Activity: 2


View Profile
April 18, 2011, 07:16:34 PM
 #2

Oh, and one more thing: what happens when the value of a new block goes from 50 BTC to 25 BTC?  Will the difficulty automatically go down then?  If not, then same question.
FreeMoney
Legendary
*
Offline Offline

Activity: 1246


Strength in numbers


View Profile WWW
April 18, 2011, 07:30:03 PM
 #3

Yes it can go down. At the drop to 50 it will likely go down.

Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2506


View Profile
April 18, 2011, 08:03:09 PM
 #4

It only adjusts every 2016 blocks. If we get stuck in that kind of situation, the code will probably be changed to allow for difficulty reduction in some other way. I think it's unlikely we'll ever get that stuck, since transaction fees will accumulate until blocks become valuable enough.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Steve
Hero Member
*****
Offline Offline

Activity: 868



View Profile WWW
April 18, 2011, 08:48:29 PM
 #5

I am trying to understand the way in which the block generation difficulty is adjusted.  If people stop generating blocks, is it possible for the difficulty to decrease without 2016 blocks going by?  If not, then from what I understand, it seems like the following undesirable situation could arise:

0. The value of one BTC increases dramatically (say to 100 USD).
1. More people start mining, and so the difficulty increases a lot, and the electricity cost to generate a block settles at a bit less than 5000 USD as expected.
2. The value of one BTC decreases (for unrelated reasons) to 10 USD.
3. Almost everyone stops mining, because it's not worth spending 5000 USD to generate a block.  Now we only get (say) one block per day from a few people who are mining just for fun.
4. If the value of a BTC doesn't rise again, it takes about 5 years (in this case) for 2016 blocks to go by so that the difficulty can go down.

Am I missing something?  Thanks for reading.


I think that kind of price move would either be a) relatively temporary due to some panic or b) permanent and associated with complete demise of bitcoins.  In the first case, the price would recover as would mining interest and the situation would right itself.  In the second case, it's game over for bitcoin, so who cares if it takes 5 years or 5 decades to mine the next 2016 blocks.  It's hard to imagine a scenario where it loses 90% of its value and takes more than a few months to recover to the point where mining activity picks up enough that the next 2016 blocks get mined in a reasonably short amount of time.  Also, I don't think it would ever be the case for very long that the electricity cost of mining a block is equivalent to the value of the reward/fees for a block.  If that were the case, then mining would be a money losing proposition due to the hardware costs.  And, you have to factor in new generations of hardware that would increase efficiency and hence lower the cost of mining (thus inducing people to invest in new hardware and resume mining). 

But, it does raise interesting questions.  I'm not sure why it couldn't be made such that the difficultly adjustment happened more frequently (say every 100 blocks), or be triggered based on thresholds set on a moving average of the block creation rate (i.e. if the average rate of block creation for the last 100 blocks is <5min or >15min, re-adjust the difficulty).

(gasteve on IRC) Does your website accept cash? https://bitpay.com
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!