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

Commit

Permalink
Merge pull request #2417 from TheGoldenEye/1.0.0_patch_aggregateBlock…
Browse files Browse the repository at this point in the history
…sReward

Calculate the correct time interval in aggregateBlocksReward - Closes #2367
  • Loading branch information
MaciejBaj committed Oct 4, 2018
2 parents 96c871a + b691742 commit 0aab2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/blocks/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ Utils.prototype.aggregateBlocksReward = function(filter, cb) {
params.delegates = constants.activeDelegates;

if (filter.start !== undefined) {
params.start = (filter.start - constants.epochTime.getTime()) / 1000;
params.start = Math.floor((filter.start - constants.epochTime.getTime()) / 1000);
params.start = params.start.toFixed();
}

if (filter.end !== undefined) {
params.end = (filter.end - constants.epochTime.getTime()) / 1000;
params.end = Math.floor((filter.end - constants.epochTime.getTime()) / 1000);
params.end = params.end.toFixed();
}

Expand Down

0 comments on commit 0aab2f2

Please sign in to comment.