fixed block by height
This commit is contained in:
parent
318d52d593
commit
e47a53e95a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue