Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: helloword2013 on July 26, 2015, 03:25:03 PM



Title: difficulty are difference,need help
Post by: helloword2013 on July 26, 2015, 03:25:03 PM
I have fork a altcoin
But I don't understand why the difficulty of "getinfo" is different from "getmininginfo",need some help and can somebody explain???thank you
Code:
22:43:58
getinfo
22:43:58
{
"version" : 1000000,
"protocolversion" : 70001,
"walletversion" : 60000,
"balance" : 2500.00000000,
"blocks" : 1943,
"timeoffset" : -4,
"connections" : 9,
"proxy" : "",
"difficulty" : 0.00000381,
"testnet" : false,
"keypoololdest" : 1437731877,
"keypoolsize" : 101,
"paytxfee" : 0.00000000,
"errors" : ""
}
22:44:13
getmininginfo
22:44:13
{
"blocks" : 1943,
"currentblocksize" : 0,
"currentblocktx" : 0,
"difficulty" : 0.00024414,
"errors" : "",
"generate" : false,
"genproclimit" : -1,
"collisionspersec" : "No information yet. Wait at least 4 minutes after starting mining for estimate.",
"pooledtx" : 0,
"testnet" : false
}


Title: Re: difficulty are difference,need help
Post by: bit1 on July 26, 2015, 06:00:35 PM
Only curious. Difficulty is besides displayed on bottom right corner leaving positioned the mouse over one of the 3 small icons. Wich  is similar  "getinfo" or "getmininginfo" to?


Title: Re: difficulty are difference,need help
Post by: YarkoL on July 27, 2015, 08:15:54 AM

Assuming the coin is this one (https://bitcointalk.org/index.php?topic=422598.0):

getmininginfo returns difficulty multiplied by 64.

getinfo returns just the difficulty.

Simple to find out with just elementary reading skills.


Title: Re: difficulty are difference,need help
Post by: helloword2013 on July 27, 2015, 03:17:38 PM

Assuming the coin is this one (https://bitcointalk.org/index.php?topic=422598.0):

getmininginfo returns difficulty multiplied by 64.

getinfo returns just the difficulty.

Simple to find out with just elementary reading skills.
yes,sir,you are right
Code:
obj.push_back(Pair("difficulty",    (double)GetDifficulty()*64));
and  thanks for your advice for reading skills.


Title: Re: difficulty are difference,need help
Post by: YarkoL on July 27, 2015, 04:57:28 PM

Code:
obj.push_back(Pair("difficulty",    (double)GetDifficulty()*64));
and  thanks for your advice for reading skills.


That was no advice, but a statement of fact.
And you proved it by actually looking at the code.