Bitcoin Forum
June 18, 2024, 05:14:46 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What's the difficulty of testnet  (Read 1104 times)
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
August 05, 2014, 01:33:12 PM
Last edit: August 05, 2014, 02:06:33 PM by konradp
 #1

Hi.
Blockexplorer ( http://blockexplorer.com/testnet/q/getdifficulty ) shows that the testnet difficulty is 1.0, while bitcoin -testnet console window tells me it is 11.5

Why the difference?

edit: hmmm now blockexplorer shows 128167.76365264 and bitcoin client 1.0, what is happening?

Ah wait - the bitcoin client hasn't finished downloading the blockchain... does it explain it? But why blockexplorer jumped from 1.0 to 128167.76365264 ? Is the testnet difficulty being calculated more often than mainnet?

edit2: is that even possible that testnet's difficulty is 128167.76... that would make it useless...

edit3: blockexplorer again shows 1.0 - I can't find any info about this behaviour on https://en.bitcoin.it/wiki/Testnet except for "(...)introduced (...) a new rule to avoid the "difficulty was too high, is now too low, and transactions take too long to verify" problem (...) " - so what are the rules? Is the difficulty supposed to jump like that?
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
August 05, 2014, 02:13:34 PM
 #2

If no blocks are found on testnet in 20 minutes it will reset difficulty back to 1.  This is done because difficulty is suppose to remain low to allow easy block creation even with development CPU but at one time some idiots would dump TH/s on testnet drive difficulty to insane levels and leave.

Also difficulty 1 on testnet is equal to difficulty 0.5 on mainnet.  That threw me off the first I was looking at block hashes.
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
August 05, 2014, 02:16:29 PM
 #3

Thanks!
But regarding this:
Quote
"If no blocks are found on testnet in 20 minutes it will reset difficulty back to 1"
Does also this mean, that difficulty is 1 for the next 20 minutes?
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
August 05, 2014, 02:20:47 PM
 #4

Well no difficulty is also adjusted normally every 2016 blocks.

So in 2016 blocks the difficulty will rise based on the time of the last 2016 blocks just like it does on mainnet every 2016 blocks.  Exactly the same rules, exactly the same outcome.  If hashrate is constant that would be two weeks but it could be two months or two minutes.  

The only difference between the networks is that tesnet has an "anti-dirtbag reset" built into it.   If (in addition to all the normal difficulty adjustment rules) there is no block found in the last 20 minutes then difficulty is instantly and automatically reset to 1.  Note this is horribly insecure to use on a mainnet as it could easily be exploited by an attacker due to the loose timestamp rules but testnet isn't designed to be secure from reorgs.
drawingthesun
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
August 05, 2014, 02:22:05 PM
 #5

Thanks!
But regarding this:
Quote
"If no blocks are found on testnet in 20 minutes it will reset difficulty back to 1"
Does also this mean, that difficulty is 1 for the next 20 minutes?

I don't think so.

I think he means this:

So no matter the current difficulty, if no blocks are found within 20 minutes, the current difficulty is set to 1.

Now if someone starts mining using TH/s of power, nothing will stop the difficulty rising from 1.

So it's not forced at 1 whilst people are mining, it's just a change applied once every time the criteria of {no blocks for 20 minutes} is reached.

I hope that explains it a little more.
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
August 05, 2014, 02:26:13 PM
 #6

Thank you both, but... this means I have basically no chance to solve a block with my 5 MH/s?  or even 3 GH/s Huh

(corrected 30 gh/s -> 3 gh/s)
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
August 05, 2014, 02:32:06 PM
 #7

Thank you both, but... this means I have basically no chance to solve a block with my 5 MH/s?  or even 3 GH/s Huh

(corrected 30 gh/s -> 3 gh/s)

Sure you have a chance, depending on the current difficulty. But if you want coins to test with there is at least one faucet that gives out several btc at once. should be sufficient for testing.

Im not really here, its just your imagination.
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
August 05, 2014, 02:33:46 PM
 #8

Thank you both, but... this means I have basically no chance to solve a block with my 5 MH/s?  or even 3 GH/s Huh

(corrected 30 gh/s -> 3 gh/s)

Sure you have a chance, depending on the current difficulty. But if you want coins to test with there is at least one faucet that gives out several btc at once. should be sufficient for testing.

Thanks - I already got 0.44 btc this way, I just wanted to solve a block at least once in my lifetime:)

But so I have a question guys - why aren't there *many* testnets? That would split those with GH/s i TH/s and I could choose one testnet. Why not?
Envrin
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
August 05, 2014, 02:45:47 PM
 #9

But so I have a question guys - why aren't there *many* testnets? That would split those with GH/s i TH/s and I could choose one testnet. Why not?

If wanted, you could always create your own Testnet in a Box Smiley
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
August 05, 2014, 02:47:42 PM
 #10

But so I have a question guys - why aren't there *many* testnets? That would split those with GH/s i TH/s and I could choose one testnet. Why not?

If wanted, you could always create your own Testnet in a Box Smiley


Thanks, but is there a way to explore blocks on such a thing? Explore using a nice interface, like blockexplorer? Smiley
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!