Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fixing unRewardsByRound initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Beddows committed Feb 4, 2016
1 parent d6b7eff commit 32478e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/round.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Round.prototype.backwardTick = function (block, previousBlock, cb) {
private.unFeesByRound[round] = (private.unFeesByRound[round] || 0);
private.unFeesByRound[round] += block.totalFee;

private.unRewardsByRound[round] = (private.rewardsByRound[round] || 0);
private.unRewardsByRound[round] = (private.rewardsByRound[round] || []);
private.unRewardsByRound[round].push(block.reward);

private.unDelegatesByRound[round] = private.unDelegatesByRound[round] || [];
Expand Down

0 comments on commit 32478e3

Please sign in to comment.