Fix for search by block height on non-RPC
This commit is contained in:
+1
-1
@@ -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'){
|
||||
|
||||
Reference in New Issue
Block a user