Bitcoin Forum
September 27, 2018, 10:59:33 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How the difficulty is adjusted in this situation ?  (Read 1200 times)
BitcoinExchangeIndia.com
Sr. Member
****
Offline Offline

Activity: 258
Merit: 250


View Profile
November 16, 2014, 04:59:45 PM
 #1

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...
1538089173
Hero Member
*
Offline Offline

Posts: 1538089173

View Profile Personal Message (Offline)

Ignore
1538089173
Reply with quote  #2

1538089173
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538089173
Hero Member
*
Offline Offline

Posts: 1538089173

View Profile Personal Message (Offline)

Ignore
1538089173
Reply with quote  #2

1538089173
Report to moderator
1538089173
Hero Member
*
Offline Offline

Posts: 1538089173

View Profile Personal Message (Offline)

Ignore
1538089173
Reply with quote  #2

1538089173
Report to moderator
onemorebtc
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
November 16, 2014, 05:02:24 PM
 #2

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...

no
any better hash works. difficutly only adjusts after 2 weeks in blocktime and only takes the time-diff between blocks into account: not the value of the found hash itself

transfer 3 onemorebtc.k1024.de 1
BitcoinExchangeIndia.com
Sr. Member
****
Offline Offline

Activity: 258
Merit: 250


View Profile
November 16, 2014, 05:08:42 PM
 #3

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...

no
any better hash works. difficutly only adjusts after 2 weeks in blocktime and only takes the time-diff between blocks into account: not the value of the found hash itself

I know the standard definition of difficulty. That was not my Q.

Zeroes required in a hash to be accepted as valid is set by the network. And finding hashes with less number of zeroes by changing nonce is called hashing. That is the difficult thing for a miner. More the zeroes, more difficult it is. Is not it ? This is what I have meant by difficulty here. NOT the standard definition.
cr1776
Legendary
*
Offline Offline

Activity: 2016
Merit: 1007


View Profile
November 16, 2014, 06:17:49 PM
 #4

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...

no
any better hash works. difficutly only adjusts after 2 weeks in blocktime and only takes the time-diff between blocks into account: not the value of the found hash itself

I know the standard definition of difficulty. That was not my Q.

Zeroes required in a hash to be accepted as valid is set by the network. And finding hashes with less number of zeroes by changing nonce is called hashing. That is the difficult thing for a miner. More the zeroes, more difficult it is. Is not it ? This is what I have meant by difficulty here. NOT the standard definition.

His answer to your question was correct.  The 20 zeroes does not change the difficulty at all.  Anything less than 8 zeroes is acceptable in your example, and that continues until the next difficulty adjustment.

spin
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250


View Profile
November 17, 2014, 01:47:33 PM
 #5

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...

Difficulty on adjusts every 2016 blocks.  If a block hash is a lot more zeroes than needed it has no impact on difficulty or the network.

If you liked this post buy me a beer.  Beers are quite cheap where I live!
194YjsiwmGm3hcbPcJWWyzRAS9CQLX1fJL
dabura667
Sr. Member
****
Offline Offline

Activity: 478
Merit: 250


View Profile
November 17, 2014, 01:56:51 PM
 #6

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find. Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left. Does it mean that the next hash has to have more than 20 zeroes in left ? How network will adjust this sudden difficulty spike ?

Please let me know if I'm having any conceptual mistake here...

no
any better hash works. difficutly only adjusts after 2 weeks in blocktime and only takes the time-diff between blocks into account: not the value of the found hash itself

I know the standard definition of difficulty. That was not my Q.

Zeroes required in a hash to be accepted as valid is set by the network. And finding hashes with less number of zeroes by changing nonce is called hashing. That is the difficult thing for a miner. More the zeroes, more difficult it is. Is not it ? This is what I have meant by difficulty here. NOT the standard definition.

onemorebtc is correct. His answer DOES answer your question.

You are fundamentally misunderstanding how difficulty is calculated. You are asking if "the next hash has to have more than 20 zeroes in left?" (sic) and the answer is "no".

The bitcoin network does not care HOW RIGHT you are, it just cares if you're RIGHT or WRONG.
If you meet the requirement, you are RIGHT.
If you DON'T meet the requirement you are WRONG.

You are not MORE WRONG if you have less zeroes, and you are not MORE RIGHT for having more zeroes than needed. It's just a 1/0, right/wrong, yes/no type problem.

So every single block for 2 weeks could have 55 zeroes, but the Bitcoin network would not care. If they were slow to confirm, the difficulty will go DOWN, not up. If they were fast to confirm, the difficulty will go UP.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1373



View Profile
November 17, 2014, 09:24:35 PM
 #7

As I understand, the more number of zeroes are required in a block hash, the more it is difficult to find.

That's not exactly how it works, but it's a good introduction.  In actuality, the "difficulty" is simply a target number.  Any number less than the target is considered "lower than the difficulty" regarless of the number of zeroes.

Now suppose, the target is to find a hash with more than 8 zeroes in the left, but the found hash hash 20 zeroes in left.

With a number that has a fixed number of digits, more zeros on the left means it has to be a smaller number.  So, 20 zeroes on the left obviously means that the found has is low enough.

Does it mean that the next hash has to have more than 20 zeroes in left?

No.  The next has has to have more than 8 zeroes on the left.  That's what you just said the difficulty is "more than 8 zeroes in the left".  It won't need more than that unless the difficulty increases in the future.

How network will adjust this sudden difficulty spike ?

This is not a difficulty spike.  There is no adjustment necessary.  Difficulty is only changed if the total time for the last 2016 blocks is more (or less) than 20160 minutes.  If it is more than 20160 minutes, then blocks are too slow and the difficulty is decreased.  If it is less than 20160 minutes, then blocks are too fast and the difficulty is increased.

Please let me know if I'm having any conceptual mistake here...

You are having a conceptual mistake here.

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!