From e47a53e95a01857b79e3bea64cdf661c6dda6116 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Wed, 5 Feb 2014 15:27:50 -0300 Subject: [PATCH] fixed block by height --- lib/BlockDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BlockDb.js b/lib/BlockDb.js index a64ae66..426f4c9 100644 --- a/lib/BlockDb.js +++ b/lib/BlockDb.js @@ -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);