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#L60From here to:
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.