minor.
This commit is contained in:
parent
278ff82658
commit
c598937e4c
@ -419,6 +419,7 @@ Block.prototype.getCoinbaseHeight = function getCoinbaseHeight() {
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
height = coinbase.inputs[0].script.getCoinbaseHeight();
|
height = coinbase.inputs[0].script.getCoinbaseHeight();
|
||||||
|
|
||||||
this._cbHeight = height;
|
this._cbHeight = height;
|
||||||
|
|
||||||
return height;
|
return height;
|
||||||
@ -472,8 +473,8 @@ Block.prototype.getClaimed = function getClaimed() {
|
|||||||
* @returns {Amount}
|
* @returns {Amount}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Block.reward = function _reward(height, network) {
|
Block.reward = function reward(height, network) {
|
||||||
var halvings, reward;
|
var halvings;
|
||||||
|
|
||||||
assert(height >= 0, 'Bad height for reward.');
|
assert(height >= 0, 'Bad height for reward.');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user