Pages:
Author

Topic: how does difficulty work exactly? (Read 4527 times)

hero member
Activity: 625
Merit: 500
April 29, 2014, 10:26:37 PM
#25
huh, I always just imagined the code would be come more complex and harder to solve therefore making the difficulty higher then before.  This is a much more complex question then I'd assumed.

Indeed the code is pretty simple.
It just check the time taken for finding the 2016 blocks and update the "target" value accordingly.
hero member
Activity: 798
Merit: 500
Time is on our side, yes it is!
April 29, 2014, 07:06:40 PM
#24
huh, I always just imagined the code would be come more complex and harder to solve therefore making the difficulty higher then before.  This is a much more complex question then I'd assumed.
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
April 29, 2014, 03:58:25 PM
#23
i dont think that the difficulty will ever be lower than it is at any point in time. meaning it only gets harder because it is growing and more poeple are adopting and to spread the wealth more the more users needed mining and supporting the network and the network gets bigger
There are a lot of marginal miners now with older miners that make just a bit more than the cost of the electricity needed to run them. If the price of Bitcoin drops significantly, they'll stop mining. However, even though there are a lot of them in number, they probably don't represent a huge fraction of the mining power out there. Still, it wouldn't surprise me if difficulty temporarily dropped a bit if the price of Bitcoin, say, dropped by 30%.
sr. member
Activity: 434
Merit: 251
April 29, 2014, 09:21:32 AM
#22
i dont think that the difficulty will ever be lower than it is at any point in time. meaning it only gets harder because it is growing and more poeple are adopting and to spread the wealth more the more users needed mining and supporting the network and the network gets bigger
legendary
Activity: 966
Merit: 1001
April 27, 2014, 11:51:16 PM
#21
If BTC falls into this situation are there any plans to keep blocks moving at 1 per 10 mins if a crazy drop in mining power would happen and average block time goes into weeks?

Currently, no.
I seriously doubt if majority of hashrate will left bitcoin all in a sudden, unless in an huge disaster causing world-wide internet and electricity outage.
I also doubt if the difficulty algorithm will be adjusted, as it will lead to hard fork.
sr. member
Activity: 252
Merit: 250
April 27, 2014, 09:42:26 PM
#20
Despite knowing it, these days you can just go to bitcoinwisdom and it`ll state the next difficulty hike

It also explains the #`s on percent.

newbie
Activity: 7
Merit: 0
April 27, 2014, 04:18:35 PM
#19
Long time no post on this but need to ask a question on this topic.

Hypothetical - if Bitcoin takes a hard of enough crash to stop 95% of miners from mining it stops the block-chain from publishing new blocks and paying the other 10% of miner. I see this with other dead or dieng sha-256 coins out there which the block chain is frozen because the difficulty is "stuck" at a High level where its going to take years for the 2016 block to be reached. If BTC falls into this situation are there any plans to keep blocks moving at 1 per 10 mins if a crazy drop in mining power would happen and average block time goes into weeks? I was looking at the failure byte coin which got me thinking.         
full member
Activity: 182
Merit: 102
December 08, 2013, 05:51:48 PM
#18
thanks for answers, I was looking for this a long time ago.

ditto
newbie
Activity: 10
Merit: 0
December 08, 2013, 05:29:48 PM
#17
thanks for answers, I was looking for this a long time ago.
jr. member
Activity: 56
Merit: 1
December 08, 2013, 04:42:43 PM
#16
Can the difficulty go down as well?

Yes, When I was farming difficulty changed. Went down and up too. So definitely can go down. I hope that answers your question.  Smiley
donator
Activity: 1218
Merit: 1079
Gerald Davis
December 08, 2013, 04:08:10 PM
#15
Can the difficulty go down as well?
I tink it depends of the coins. For bitcoin, it can not. even if you stop mining.

That is not correct. Difficulty can (and has) gone down. 

If the hashrate of the network doubles, then the time between blocks will be cut in half and next adjustment difficulty will double.
If the hashrate of the network is cut in half, then the time between blocks will double, and next adjustment difficulty will be cut in half.
newbie
Activity: 10
Merit: 0
December 08, 2013, 04:00:13 PM
#14
That's a very good question but difficult to answer. I'll try and get back to you but it might be difficult
newbie
Activity: 10
Merit: 0
December 08, 2013, 03:46:08 PM
#13
Can the difficulty go down as well?
I tink it depends of the coins. For bitcoin, it can not. even if you stop mining.
sr. member
Activity: 392
Merit: 250
December 08, 2013, 03:34:53 PM
#12
Just imagine 25 bitcoins falling out of the sky every 10 minutes.  
The more people there are who want these, the harder it is for each individual to catch a reasonable share. 
At this rate, all of our energy resources will be drained just so we can continue catching them with better efficiency.  In this sense, bitcoin is a virus about to destroy our world.  Smiley
full member
Activity: 182
Merit: 102
December 08, 2013, 03:31:08 PM
#11
 Can the difficulty go down as well?
donator
Activity: 1218
Merit: 1079
Gerald Davis
September 10, 2012, 12:06:29 AM
#10
By whom?  Or more clearly, how are clock errors in participants reduced, does the network agree what time it is somehow?

Blocks are timestamped by the person solving it.  The network does maintain a "network average time" which all nodes share so the timestamp of any new block can't deviate by more than 3 hours from network time.

The network attempts to solve one block per ten minutes.  Every 2016 blocks difficulty is recalculated.  The timestamp between the first and last block should be 2016 * 10 = 20,160 minutes (~14 days).  The difficulty necessary to make the prior 2016 blocks exactly 20,160 minutes is computed and that becomes the difficulty for the next 2016 blocks.

It is possible to spoof the timestamp of a block but only by so much.  An attacker can't really influence difficulty by any meaningful way because only the first and last block matter and they can only deviate from network time by more than 3 hours.
legendary
Activity: 1596
Merit: 1012
Democracy is vulnerable to a 51% attack.
September 10, 2012, 12:02:44 AM
#9
By whom?  Or more clearly, how are clock error in participants reduced, does the network agree what time it is somehow?
Each block is timestamp by the entity that mined it. The block is accepted if the timestamp is roughly correct. Every 2,016 blocks, difficulty is adjusted based on the timestamps of the blocks to keep the average block mining rate at one per ten minutes. There's a slight oversimplification in the algorithm that results in the block discovery rate being a little higher than this if network hash rate is increasing.
sr. member
Activity: 354
Merit: 250
September 10, 2012, 12:02:24 AM
#8
i've been interested in this too
newbie
Activity: 43
Merit: 0
September 10, 2012, 12:00:36 AM
#7
If it influences difficulty, and is based on how long previous blocks took to uncover, then how is this orchestrated through the network - how does everyone agree how long a block took?
The blocks are timestamped.

By whom?  Or more clearly, how are clock errors in participants reduced, does the network agree what time it is somehow?
hero member
Activity: 575
Merit: 500
The North Remembers
September 09, 2012, 11:57:02 PM
#6
It is adjusted to keep the average time to find a block at 10 min.
Pages:
Jump to: