fixed block by height

This commit is contained in:
Gustavo Cortez 2014-02-05 15:27:50 -03:00
parent 318d52d593
commit e47a53e95a
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ console.log('[BlockDb.js.137:data:]',data); //TODO
});
};
BlockDb.blockIndex = function(height, cb) {
BlockDb.prototype.blockIndex = function(height, cb) {
var rpc = new RpcClient(config.bitcoind);
rpc.getBlockHash(height, function(err, bh){
if (err) return cb(err);