Bitcoin Forum
June 14, 2024, 10:49:43 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: difficulty are difference,need help  (Read 436 times)
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
July 26, 2015, 03:25:03 PM
 #1

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
}
bit1
Legendary
*
Offline Offline

Activity: 938
Merit: 1000



View Profile
July 26, 2015, 06:00:35 PM
 #2

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?
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
July 27, 2015, 08:15:54 AM
 #3


Assuming the coin is this one:

getmininginfo returns difficulty multiplied by 64.

getinfo returns just the difficulty.

Simple to find out with just elementary reading skills.

“God does not play dice"
helloword2013 (OP)
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250


View Profile
July 27, 2015, 03:17:38 PM
 #4


Assuming the coin is this one:

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.
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
July 27, 2015, 04:57:28 PM
 #5


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.

“God does not play dice"
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!