From a4626f97eba80511ed2acb0cfd4e01096ff84b04 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 16 Feb 2014 13:08:43 -0300 Subject: [PATCH] fix block reward --- lib/BlockDb.js | 4 ++-- lib/Rpc.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/BlockDb.js b/lib/BlockDb.js index acc33bd..1cb232e 100644 --- a/lib/BlockDb.js +++ b/lib/BlockDb.js @@ -171,11 +171,11 @@ function spec(b) { self.isMain(hash, function(err, val) { if (err) return cb(err); - info.result.isMainChain = val ? true : false; + info.isMainChain = val ? true : false; return cb(null, { hash: hash, - info: info.result, + info: info, }); }); }); diff --git a/lib/Rpc.js b/lib/Rpc.js index cefc075..b13e112 100644 --- a/lib/Rpc.js +++ b/lib/Rpc.js @@ -88,9 +88,9 @@ function spec(b) { if (info.result.height) - info.result.reward = BitcoreBlock.getBlockValue(info.result.height) / util.COIN ; + info.result.reward = BitcoreBlock.getBlockValue(info.result.height) / bitcoreUtil.COIN ; - return cb(err,info); + return cb(err,info.result); }); };