fix block reward
This commit is contained in:
parent
10c69762bf
commit
a4626f97eb
@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user