Bitcoin Forum
July 21, 2018, 09:22:31 PM
 News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 Home Help Search Donate Login Register
 Pages: [1]
 Author Topic: How to calculate litecoin difficulty  (Read 512 times)
kujaff
Newbie

Offline

Activity: 2
Merit: 0

 February 08, 2014, 02:19:17 PM

Hi

I'm trying to use the litecoind daemon, to get some litecoin infos. Like the difficulty

But i don't understand how to read it ... When i call litecoind getdifficultry now, i have "0.09034463", which is not the difficulty shown on litecoin's calculators (near 3507).

I've seen a formula here : https://litecoin.info/Difficulty , but i don't understand how to read it ... don't know what "2**32" means (** ??), and how to get "target".

Can i get 3507 (current real difficulty) with the daemon directly, or if i can't, how can i get it ?

Thanks !
1532208151
Hero Member

Offline

Posts: 1532208151

Ignore
 1532208151

1532208151
 Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Okele
Newbie

Offline

Activity: 19
Merit: 0

 February 09, 2014, 09:27:07 AM

As I understand it.

Block Reward/(difficulty*2^32)/(cardhash*1000)/3600/24

Block Reward = the coins reward for finding a block. In the instance of litecoin it's 50.
Difficulty = current difficulty, which I believe is 3508
2^32 = 4,294,967,296
cardhash = the khash that your card(s) can do. Like a 280x can do 750 khash/s for example.
1000 = the conversion from khash to hash/s.
3600 = how many seconds are in an hour
24 = how many hours are in a day.

so using those examples:

50/(3508*4,294,967,296)/(750*1000)/3600/24 = 50/(15,066,745,274,368)/(750,000)/3600/24)=.22 Litecoin per day.

Hope that's what you're looking for. If not someone may get use out of it.

kujaff
Newbie

Offline

Activity: 2
Merit: 0

 February 11, 2014, 05:10:25 PM

But my problem is to calculate the "Difficlty" part of your formula.
Wolf0
Legendary

Offline

Activity: 1834
Merit: 1002

Miner Developer

 February 11, 2014, 06:02:01 PM