Fix getdifficulty

This commit is contained in:
joeuhren
2020-11-22 16:07:20 -07:00
parent 761ee12f5b
commit b3e9619c03
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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'];