This commit is contained in:
Christopher Jeffrey 2016-05-16 00:43:11 -07:00
parent 278ff82658
commit c598937e4c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -419,6 +419,7 @@ Block.prototype.getCoinbaseHeight = function getCoinbaseHeight() {
return -1;
height = coinbase.inputs[0].script.getCoinbaseHeight();
this._cbHeight = height;
return height;
@ -472,8 +473,8 @@ Block.prototype.getClaimed = function getClaimed() {
* @returns {Amount}
*/
Block.reward = function _reward(height, network) {
var halvings, reward;
Block.reward = function reward(height, network) {
var halvings;
assert(height >= 0, 'Bad height for reward.');