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); }); };