Bitcoin Forum
May 07, 2024, 10:59:12 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Will the difficulty change and block halving take place on the same block?  (Read 169 times)
DutchDemon (OP)
Jr. Member
*
Offline Offline

Activity: 115
Merit: 4


View Profile
February 29, 2020, 11:43:06 AM
 #1

i.e. Block #630000 ?
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715079552
Hero Member
*
Offline Offline

Posts: 1715079552

View Profile Personal Message (Offline)

Ignore
1715079552
Reply with quote  #2

1715079552
Report to moderator
1715079552
Hero Member
*
Offline Offline

Posts: 1715079552

View Profile Personal Message (Offline)

Ignore
1715079552
Reply with quote  #2

1715079552
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
February 29, 2020, 12:10:09 PM
Merited by OgNasty (1)
 #2

The main title (question) is a bit vague, so I'll just answer based from the context:

Q: Will the difficulty change during/after the halving?
A: No, there's no direct relation between halving and difficulty,
The increased/decreased difficulty is just the effect of more/less miner competing for the lowered block reward and/or just because of the new ASICs that's more efficient.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DutchDemon (OP)
Jr. Member
*
Offline Offline

Activity: 115
Merit: 4


View Profile
February 29, 2020, 12:17:47 PM
 #3

The main title (question) is a bit vague, so I'll just answer based from the context:

Q: Will the difficulty change during/after the halving?
A: No, there's no direct relation between halving and difficulty,
The increased/decreased difficulty is just the effect of more/less miner competing for the lowered block reward and/or just because of the new ASICs that's more efficient.

No. No. I am not asking whether difficulty will change because of halving. AFAIK, difficulty changes at every 2016 block and halving will occur at Block #630000. My question whether the two incident will coincide?
20kevin20
Legendary
*
Offline Offline

Activity: 1134
Merit: 1597


View Profile
February 29, 2020, 12:20:25 PM
Merited by LoyceV (4), hugeblack (2), fillippone (2), pooya87 (1), nc50lc (1), o_e_l_e_o (1), Upgrade00 (1)
 #4

The block difficulty changes every 2016 blocks. That means the difficulty will be changed on block #628992 and block #631008. Therefore, the difficulty is not adjusted with the halving at the same time.

It's a simple calculus:

Divide block #630000 by 2016 and that results in the following number: 312.5.
312.5 is right in between 312 and 313, so multiply 312 and 313 separately by 2016 and you'll get the following numbers: 628992 and 631008.
630000 is in between these two numbers (block heights), so they will not coincide.

Edit:
In other words, difficulty adjustment will happen 1008 blocks before and after the halving.. or approximately a week before and after - as far as I know, it takes about 2 weeks for 2016 blocks to be solved. Smiley
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18510


View Profile
February 29, 2020, 12:47:24 PM
Merited by fillippone (2), 20kevin20 (2), pooya87 (1)
 #5

That means the difficulty will be changed on block #628992 and block #631008.
This is the correct answer. You can see a list of all previous difficulty adjustments, including the block numbers as multiples of 2016, here: https://btc.com/stats/diff

as far as I know, it takes about 2 weeks for 2016 blocks to be solved.
That is the target, but it is usually less than that due to the hashrate increasing the majority of the time. If you take a look at the link I shared above, you'll see the average block time (certainly over the last 20-30 difficulty readjustments) has been less than 10 minutes. If we look at the last 20 adjustments, they cover a period of 271 days (May 30th through February 25th), instead of the target 280 days.
20kevin20
Legendary
*
Offline Offline

Activity: 1134
Merit: 1597


View Profile
February 29, 2020, 01:03:40 PM
 #6

This is the correct answer. You can see a list of all previous difficulty adjustments, including the block numbers as multiples of 2016, here: https://btc.com/stats/diff
~
Thanks, I was looking for that link to make sure I'm not writing bullshit but couldn't find it anywhere. Cheesy

That is the target, but it is usually less than that due to the hashrate increasing the majority of the time. If you take a look at the link I shared above, you'll see the average block time (certainly over the last 20-30 difficulty readjustments) has been less than 10 minutes. If we look at the last 20 adjustments, they cover a period of 271 days (May 30th through February 25th), instead of the target 280 days.
Interesting to know.
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16614


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
February 29, 2020, 01:18:12 PM
Merited by 20kevin20 (2)
 #7

If you take a look at the link I shared above, you'll see the average block time (certainly over the last 20-30 difficulty readjustments) has been less than 10 minutes.
Interesting to know.
The 10 minute average is based on a static hash rate. But since the hash rate is increasing most of the time, blocks are found slightly faster.
And the opposite happens when the hashrate drops, usually when miners switch off their hardware if the Bitcoin price drops so much it's no longer worth the electricity.

odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
February 29, 2020, 04:58:51 PM
Last edit: February 29, 2020, 05:09:05 PM by odolvlobo
Merited by fillippone (2)
 #8

The difficulty changes every 2016 blocks. The halving occurs every 210000 blocks. To find when they coincide, you find the LCM ("least common multiple"). The LCM is 1260000. They will coincide every 1260000 blocks, or about every 24 years.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
SpanishSoldier
Sr. Member
****
Offline Offline

Activity: 686
Merit: 255


View Profile
May 06, 2020, 07:27:06 PM
 #9

The difficulty changes every 2016 blocks. The halving occurs every 210000 blocks. To find when they coincide, you find the LCM ("least common multiple"). The LCM is 1260000. They will coincide every 1260000 blocks, or about every 24 years.
...and it happened at Block 628992.

Previous difficulty: 15958652328578.42
Current difficulty: 16104807485529.38

Increase was approximately 0.92%
hd49728
Legendary
*
Offline Offline

Activity: 2086
Merit: 1028



View Profile WWW
May 08, 2020, 12:44:39 AM
 #10

The difficulty changes every 2016 blocks. The halving occurs every 210000 blocks. To find when they coincide, you find the LCM ("least common multiple"). The LCM is 1260000. They will coincide every 1260000 blocks, or about every 24 years.
Impressive. Thank you for those figures that I don't remember. From what you give, the difficulty on the network is changed after ~ 1.4 days (2016/1440 blocks per day). It can take longer or shorter than 1.4 days to adjust difficulty depends on how fast each batch of 2016 blocks found.

The big difference is difficulty does not increase two times or halve like block rewards. Therefore I don't see why people care about how difficulty change around halving time. The miner capitulation or new participation makes more sense on difficulty changes.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
May 08, 2020, 08:24:08 AM
 #11

From what you give, the difficulty on the network is changed after ~ 1.4 days (2016/1440 blocks per day). It can take longer or shorter than 1.4 days to adjust difficulty depends on how fast each batch of 2016 blocks found.

There are 144 blocks each day, not 1440. So the difficulty changes every 14 days.

The big difference is difficulty does not increase two times or halve like block rewards. Therefore I don't see why people care about how difficulty change around halving time. The miner capitulation or new participation makes more sense on difficulty changes.

The issue is the the halving may cause an large abrupt drop in the total hash rate, and blocks would take longer until the difficulty adjusts.

This year, the difficulty is nominally scheduled to adjust a week after the halving. Suppose that the hash rate drops by half (not likely, but not impossible). In that case, blocks will each take 20 minutes and the difficulty won't change for two weeks. Cutting Bitcoin's transaction rate by half for two weeks could have a major impact.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
hd49728
Legendary
*
Offline Offline

Activity: 2086
Merit: 1028



View Profile WWW
May 08, 2020, 11:53:50 AM
 #12

The issue is the the halving may cause an large abrupt drop in the total hash rate, and blocks would take longer until the difficulty adjusts.

This year, the difficulty is nominally scheduled to adjust a week after the halving. Suppose that the hash rate drops by half (not likely, but not impossible). In that case, blocks will each take 20 minutes and the difficulty won't change for two weeks. Cutting Bitcoin's transaction rate by half for two weeks could have a major impact.
It is nearly the same as what we saw in 2017 when bitcoin transactions got stucked even people tried to boost their fees to higher and higher. That's terrible in that period but such things often occur whenever bitcoin price skyrockets to the peaks. People turn to more actively move their coins and accept higher fees while more miners join. After all, when price drops back and newbie miners leave, we see some kinds of effects from less total hashrate and a 14 days waiting period to see difficulty adjusts.

.freebitcoin.       ▄▄▄█▀▀██▄▄▄
   ▄▄██████▄▄█  █▀▀█▄▄
  ███  █▀▀███████▄▄██▀
   ▀▀▀██▄▄█  ████▀▀  ▄██
▄███▄▄  ▀▀▀▀▀▀▀  ▄▄██████
██▀▀█████▄     ▄██▀█ ▀▀██
██▄▄███▀▀██   ███▀ ▄▄  ▀█
███████▄▄███ ███▄▄ ▀▀▄  █
██▀▀████████ █████  █▀▄██
 █▄▄████████ █████   ███
  ▀████  ███ ████▄▄███▀
     ▀▀████   ████▀▀
BITCOIN
DICE
EVENT
BETTING
WIN A LAMBO !

.
            ▄▄▄▄▄▄▄▄▄▄███████████▄▄▄▄▄
▄▄▄▄▄██████████████████████████████████▄▄▄▄
▀██████████████████████████████████████████████▄▄▄
▄▄████▄█████▄████████████████████████████▄█████▄████▄▄
▀████████▀▀▀████████████████████████████████▀▀▀██████████▄
  ▀▀▀████▄▄▄███████████████████████████████▄▄▄██████████
       ▀█████▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀█████▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.PLAY NOW.
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!