Skip to content

Commit

Permalink
getstakinginfo restriction fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Williams committed Jul 6, 2015
1 parent 3885546 commit 9622e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']);
Expand Down

0 comments on commit 9622e74

Please sign in to comment.