Skip to content

Commit

Permalink
Fix for search by block height on non-RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Dec 25, 2019
1 parent 29a1b70 commit 71f0114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = {
return cb(body);
});
} else {
client.command([{method:'getblockhash', parameters: [height]}], function(err, response){
client.command([{method:'getblockhash', parameters: [parseInt(height)]}], function(err, response){
if(err){console.log('Error: ', err); }
else{
if(response[0].name == 'RpcError'){
Expand Down

0 comments on commit 71f0114

Please sign in to comment.