fix block reward

This commit is contained in:
Matias Alejo Garcia 2014-02-16 13:08:43 -03:00
parent 10c69762bf
commit a4626f97eb
2 changed files with 4 additions and 4 deletions

View File

@ -171,11 +171,11 @@ function spec(b) {
self.isMain(hash, function(err, val) { self.isMain(hash, function(err, val) {
if (err) return cb(err); if (err) return cb(err);
info.result.isMainChain = val ? true : false; info.isMainChain = val ? true : false;
return cb(null, { return cb(null, {
hash: hash, hash: hash,
info: info.result, info: info,
}); });
}); });
}); });

View File

@ -88,9 +88,9 @@ function spec(b) {
if (info.result.height) 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);
}); });
}; };