Post
Topic
Board Announcements (Altcoins)
Re: HoboNickels - HBN - 2% stake power! - Version 1.3
by
Meska
on 05/02/2014, 18:26:28 UTC
gethashespersec would only show your hash rate if you are mining with -gen=1.

To see the network hash rate type getmininginfo

Thanks!  mpos must be broken or something.

You need to change some stuff in the class for it.

https://github.com/MPOS/php-mpos/blob/next/public/include/classes/bitcoinwrapper.class.php#L60
From here to:
Code:
      if (is_array($dNetworkHashrate)) {
if (array_key_exists('netmhashps', $dNetworkHashrate)) {
          $dNetworkHashrate = $dNetworkHashrate['netmhashps'] * 1000 * 1000;
        } else if (array_key_exists('networkhashps', $dNetworkHashrate)) {
          $dNetworkHashrate = $dNetworkHashrate['networkhashps'];
        } else if (array_key_exists('hashespersec', $dNetworkHashrate)) {
          $dNetworkHashrate = $dNetworkHashrate['hashespersec'];
        } else {
          // Unsupported implementation
          $dNetworkHashrate = 0;
        }

This should fix it.