Fix getdifficulty
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ module.exports = {
|
||||
|
||||
get_difficulty: function(cb) {
|
||||
if (settings.use_rpc) {
|
||||
client.cmd([{method:'getdifficulty', params: [parseInt(height)]}], function(err, response){
|
||||
client.cmd([{method:'getdifficulty', params: []}], function(err, response){
|
||||
if (err)
|
||||
return cb('There was an error. Check your console.');
|
||||
else
|
||||
|
||||
+1
-1
@@ -281,7 +281,7 @@ router.get('/qr/:string', function(req, res) {
|
||||
|
||||
router.get('/ext/summary', function(req, res) {
|
||||
lib.get_difficulty(function(difficulty) {
|
||||
difficultyHybrid = ''
|
||||
difficultyHybrid = '';
|
||||
if (difficulty['proof-of-work']) {
|
||||
if (settings.index.difficulty == 'Hybrid') {
|
||||
difficultyHybrid = 'POS: ' + difficulty['proof-of-stake'];
|
||||
|
||||
Reference in New Issue
Block a user