sugarchain-project / explorer

Explorer Sugarchain
https://1explorer.sugarchain.org/
BSD 3-Clause "New" or "Revised" License
3 stars 11 forks source link

diff off by factor of 100 #11

Closed mooleshacat closed 5 years ago

mooleshacat commented 5 years ago

image diff off by factor of 100

also not sure why in the config we have to specify hashrate is GH or MH or KH etc. shouldn't it grab the hashrate from the wallet daemon, and then convert it into human readable format?

https://pexa.easyxpool.tk/ (sample installation)

Thanks... I really like the explorer :+1:

cryptozeny commented 5 years ago

its converting automatically the net_hash to human readable format.

mooleshacat commented 5 years ago

its converting automatically the net_hash to human readable format.

Yes that is what it needs - it needs to convert hashrates + difficulties to human readable format automatically

Difficulty is off by factor of 100 - in the image above it should be 155.682 not 1.55682

If it automatically does this already, then it is broken and needs to be fixed. Hence the bug report.

If it automatically does this already, please remove the last few configuration lines where it asks if it is GH MH KH etc. because it is pointless and confusing to leave it in

cryptozeny commented 5 years ago

Difficulty is off by factor of 100 - in the image above it should be 155.682 not 1.55682

no its already correct. plz check getdifficulty or getmininginfo

image

image

image

i assume you may something confused about scientific notation? plz check it.

https://www.mathsisfun.com/numbers/scientific-notation.html

cryptozeny commented 5 years ago

in your screenshot difficulty at the end +2 means *100

cryptozeny commented 5 years ago

i think this is already resolved. closing.