From 9622e7402ccc78cef1bd2ad9a5ab1ef24757b2f8 Mon Sep 17 00:00:00 2001 From: Luke Williams Date: Tue, 7 Jul 2015 03:53:42 +1200 Subject: [PATCH] getstakinginfo restriction fix --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index ed842e5e6..ed0e5426a 100644 --- a/app.js +++ b/app.js @@ -16,7 +16,7 @@ var app = express(); // bitcoinapi bitcoinapi.setWalletDetails(settings.wallet); if (settings.heavy != true) { - bitcoinapi.setAccess('only', ['getinfo', 'getstakinginfo', 'getnetworkhashps', 'getmininginfo','getdifficulty', 'getconnectioncount', + bitcoinapi.setAccess('only', ['getinfo', 'getnetworkhashps', 'getmininginfo','getdifficulty', 'getconnectioncount', 'getblockcount', 'getblockhash', 'getblock', 'getrawtransaction']); } else { // enable additional heavy api calls @@ -31,7 +31,7 @@ if (settings.heavy != true) { getsupply - Returns the current money supply. getmaxmoney - Returns the maximum possible money supply. */ - bitcoinapi.setAccess('only', ['getinfo', 'getnetworkhashps', 'getdifficulty', 'getconnectioncount', + bitcoinapi.setAccess('only', ['getinfo', 'getstakinginfo', 'getnetworkhashps', 'getdifficulty', 'getconnectioncount', 'getblockcount', 'getblockhash', 'getblock', 'getrawtransaction','getmaxmoney', 'getvote', 'getmaxvote', 'getphase', 'getreward', 'getnextrewardestimate', 'getnextrewardwhenstr', 'getnextrewardwhensec', 'getsupply']);