Bitcoin Forum
August 09, 2022, 01:34:32 AM *
News: Latest Bitcoin Core release: 23.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Difficulty retargeting with lower hashrate question..  (Read 2114 times)
Icon
Hero Member
*****
Offline Offline

Activity: 821
Merit: 503



View Profile
September 30, 2014, 01:31:21 AM
 #1

I know the diff changes depending on the hash rate and retargets ever 1024 blocks? somewhere around there.. my question is what happens .. like it is now the hash rate drops and its taking longer then the average 10 mins per block, will bitcoin qt retarget sooner seeing its taking longer to solve a block now that there is less hash rate.. At the time of this post it's averaging 11 mins for a block to be solved. Are we going to have to wait longer then 2 weeks till the next 1024 blocks are solved  (ever how long that will be) before a retarget?

Icon
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
icon
Automate your trading like a pro. Lightning fast execution.
Start trading
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
1660008872
Hero Member
*
Offline Offline

Posts: 1660008872

View Profile Personal Message (Offline)

Ignore
1660008872
Reply with quote  #2

1660008872
Report to moderator
frankenmint
Legendary
*
Offline Offline

Activity: 1442
Merit: 1017


HoneybadgerOfMoney.com Weed4bitcoin.com


View Profile WWW
September 30, 2014, 01:34:41 AM
 #2

I know the diff changes depending on the hash rate and retargets ever 1024 blocks? somewhere around there.. my question is what happens .. like it is now the hash rate drops and its taking longer then the average 10 mins per block, will bitcoin qt retarget sooner seeing its taking longer to solve a block now that there is less hash rate.. at the time of this post is averaging 11 mins to solve . Are we going to have to wait longer then 2 weeks till the next 1024 blocks (ever how long that will be) for a retarget?

Icon


quick answer: no it will go by network difficulty for the block it is trying to solve.

If the network lowers difficulty, then the software will 'retarget' the lower difficulty with the next block.  average time is just that - an average.  Some days blocks are found very quickly like within minutes or seconds of each other. 

If you are meddling with the core software to try to solve at a targeted lower difficulty, the network itself will reject your block if it was discovered at a difficulty lower than current.

Icon
Hero Member
*****
Offline Offline

Activity: 821
Merit: 503



View Profile
September 30, 2014, 02:33:51 AM
 #3

So you are saying the net work diff can retarget on the fly? and not wait to a predetermined block # then check to see if it needs to retarget?

The whole point of my question was will we have to wait for a X number of blocks to be solved before the network diff lowers due to the lowering in hash rate..


Icon

-ck
Legendary
*
Offline Offline

Activity: 3612
Merit: 1408


Ruu \o/


View Profile WWW
September 30, 2014, 02:47:01 AM
 #4

Yes, it always waits 2016 blocks before a retarget. That means it takes less time before a retarget when diff is rising and more time before a retarget when diff is falling.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Icon
Hero Member
*****
Offline Offline

Activity: 821
Merit: 503



View Profile
September 30, 2014, 03:13:33 AM
 #5

thanks, that is what i was looking for.. well looks like a long wait for the next 2016 blocks.. @ 11.16 mins now per block and counting..

Seems with the price of btc lowering big miner companies have shut off some of there mining power.. meaning the diff is high but not enough hashing power to push them blocks..

Icon
DannyHamilton
Legendary
*
Offline Offline

Activity: 2870
Merit: 3407



View Profile
September 30, 2014, 05:02:35 AM
 #6

Assuming I haven't made any errors in my math (I was trying to get it done quickly before too many more blocks were solved and skewed my numbers):

I believe the last difficulty change was block 322560, therefore the next difficulty change should be block 324576.

The most recently completed block was 323139.

324576 - 323139 = 1437 more blocks until the next difficulty change.

Block 322560 was solved at approximately 2014-09-25 21:21:20 GMT
Block 323139 was solved at approximately 2014-09-30 04:44:37 GMT

That's 372,197 seconds for 579 blocks.

(372,197 / 579 ) / 60 = 10.714 minutes per block

If the average time per block remains 10.714 minutes per block for the remainder of this difficulty period, then the next difficulty change will be in:

10.714 minutes per block * 1437 blocks = 15,396 minutes = 10 days, 16 hours, 36 minutes

That would make the next difficulty change 2014-10-10 21:01:13.

Of course it is possible that the current rate of blocks is simply a small variation in the distribution, and that the average block time for this difficulty period will approach 10 minutes as more blocks are solved.

If the blocks were to average exactly 10 minutes per block by the end of this difficulty period, then the next difficulty would have been 2014-10-09 21:21:20.
spin
Sr. Member
****
Offline Offline

Activity: 362
Merit: 255


View Profile
October 03, 2014, 01:07:41 PM
 #7

You could look here for charts plus estimates: https://bitcoinwisdom.com/bitcoin/difficulty
Not entirely happy with the way they estimate the next difficulty but it gives you an idea.

If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
HELP.org
Hero Member
*****
Offline Offline

Activity: 510
Merit: 500



View Profile WWW
October 03, 2014, 01:12:36 PM
 #8

The time that goes by does not matter in the formulas, only the number of blocks.  People often say it retargets every 2 weeks or that the reward halving takes place every 4 years but those are just estimates and everything is calculated based on the number of blocks solved.

Certified Bitcoin Professional
Bicoin.me - Bitcoin.me!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!