{"action":"created","issue":{"url":"https://api.github.com/repos/MPOS/php-mpos/issues/657","labels_url":"https://api.github.com/repos/MPOS/php-mpos/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/MPOS/php-mpos/issues/657/comments","events_url":"https://api.github.com/repos/MPOS/php-mpos/issues/657/events","html_url":"https://github.com/MPOS/php-mpos/issues/657","id":19504332,"number":657,"title":"Get Network Hashrate on all coins","user":{"login":"nicoschtein","id":1649257,"avatar_url":"https://avatars.githubusercontent.com/u/1649257?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoschtein","html_url":"https://github.com/nicoschtein","followers_url":"https://api.github.com/users/nicoschtein/followers","following_url":"https://api.github.com/users/nicoschtein/following{/other_user}","gists_url":"https://api.github.com/users/nicoschtein/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoschtein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoschtein/subscriptions","organizations_url":"https://api.github.com/users/nicoschtein/orgs","repos_url":"https://api.github.com/users/nicoschtein/repos","events_url":"https://api.github.com/users/nicoschtein/events{/privacy}","received_events_url":"https://api.github.com/users/nicoschtein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MPOS/php-mpos/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MPOS/php-mpos/milestones/2","html_url":"https://github.com/MPOS/php-mpos/milestones/v1.0.0","labels_url":"https://api.github.com/repos/MPOS/php-mpos/milestones/2/labels","id":343871,"number":2,"title":"v1.0.0","description":"We will focus now on assuring a good stable code:\r\n\r\n* Backend stability\r\n* Code Reviews\r\n* Security Improvements\r\n* Allow for easier upgrades between releases\r\n\r\nWe will have to call a feature freeze at some point and focus on those items above. My proposed list of things to get added prior to releasing our first version:\r\n\r\n* Google Authenticator\r\n* Per-user settings in a new table","creator":{"login":"TheSerapher","id":2376835,"avatar_url":"https://avatars.githubusercontent.com/u/2376835?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSerapher","html_url":"https://github.com/TheSerapher","followers_url":"https://api.github.com/users/TheSerapher/followers","following_url":"https://api.github.com/users/TheSerapher/following{/other_user}","gists_url":"https://api.github.com/users/TheSerapher/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSerapher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSerapher/subscriptions","organizations_url":"https://api.github.com/users/TheSerapher/orgs","repos_url":"https://api.github.com/users/TheSerapher/repos","events_url":"https://api.github.com/users/TheSerapher/events{/privacy}","received_events_url":"https://api.github.com/users/TheSerapher/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":328,"state":"closed","created_at":"2013-05-29T04:58:15Z","updated_at":"2015-04-16T05:53:30Z","due_on":"2015-02-28T08:00:00Z","closed_at":"2015-04-16T05:52:39Z"},"comments":14,"created_at":"2013-09-14T15:53:16Z","updated_at":"2015-06-14T14:57:29Z","closed_at":"2013-09-25T09:32:12Z","body":"I have seen that on `public/include/smarty_globals.inc.php` we now check for scrypt `getnetworkhashps` and if that fails, SHA `gethashespersec`.\r\nI have been \"hacking\" this to support all the coins that don't have `getnetworkhashps` implemented.\r\nThe downfall is that we are using multiple daemon calls...\r\n\r\nHere is the \"hack\", using first `getmininginfo` then looking if it is an array and if there is a `networkhashps` key, which we set as `dNetworkHashrate`.\r\n\r\n`      $dNetworkHashrate = $bitcoin->query('getmininginfo');\r\n      if (is_array($dNetworkHashrate) && array_key_exists('networkhashps', $dNetworkHashrate))\r\n        $dNetworkHashrate = $dNetworkHashrate['networkhashps'] / 1000;\r\n`\r\n\r\nPlease check if this is possible for all Scrypt, PoS,  AND SHA, this way we should have only one way for all coins. I did not have enough coins available to test, but maybe all together this is a simple task.\r\nI can make a PR, but only if this is correct.\r\n"},"comment":{"url":"https://api.github.com/repos/MPOS/php-mpos/issues/comments/111837794","html_url":"https://github.com/MPOS/php-mpos/issues/657#issuecomment-111837794","issue_url":"https://api.github.com/repos/MPOS/php-mpos/issues/657","id":111837794,"user":{"login":"pisman3","id":12834050,"avatar_url":"https://avatars.githubusercontent.com/u/12834050?v=3","gravatar_id":"","url":"https://api.github.com/users/pisman3","html_url":"https://github.com/pisman3","followers_url":"https://api.github.com/users/pisman3/followers","following_url":"https://api.github.com/users/pisman3/following{/other_user}","gists_url":"https://api.github.com/users/pisman3/gists{/gist_id}","starred_url":"https://api.github.com/users/pisman3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pisman3/subscriptions","organizations_url":"https://api.github.com/users/pisman3/orgs","repos_url":"https://api.github.com/users/pisman3/repos","events_url":"https://api.github.com/users/pisman3/events{/privacy}","received_events_url":"https://api.github.com/users/pisman3/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T14:57:29Z","updated_at":"2015-06-14T14:57:29Z","body":"I poured it himself, and set of instructions "}}