Fix for search by block height on non-RPC

This commit is contained in:
joeuhren
2020-11-20 19:04:54 -07:00
parent d4b96bcb4a
commit 5305292897
+1 -1
View File
@@ -115,7 +115,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'){