Skip to content

Commit

Permalink
Cleaned up.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Sep 26, 2023
1 parent 967bf43 commit fe0aea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/routes/indexer/computer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export const computer: Router.Middleware = async (ctx) => {
for (
let blockHeight = blocks[0].height;
// Make sure to include the last computation.
blockHeight <= blocks[1].height + blockStep - 1n;
blockHeight < blocks[1].height + blockStep;
blockHeight += blockStep
) {
// Sorted ascending by block, so find first computation with block
Expand Down Expand Up @@ -576,7 +576,7 @@ export const computer: Router.Middleware = async (ctx) => {
for (
let blockTime = blocks[0].timeUnixMs;
// Make sure to include the last computation.
blockTime <= blocks[1].timeUnixMs + timeStep - 1n;
blockTime < blocks[1].timeUnixMs + timeStep;
blockTime += timeStep
) {
// Sorted ascending by block, so find first computation with block
Expand Down

0 comments on commit fe0aea1

Please sign in to comment.