Skip to content

Commit

Permalink
Merge pull request #2 from subspace/feat/allow-index-not-finalized-bl…
Browse files Browse the repository at this point in the history
…ocks

feat(blocks): allow index finalized blocks
  • Loading branch information
DaMandal0rian authored Aug 18, 2023
2 parents 05c2867 + 6068929 commit 6fcf2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/substrate-ingest/src/ingest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class Ingest {
.then(header => {
let height = parseInt(header.number)
assert(Number.isSafeInteger(height))
if (height%10 === 0) return height
return Math.max(0, height - 10);
}).catch(withErrorContext({
blockHash: hash
}))
Expand Down

0 comments on commit 6fcf2f2

Please sign in to comment.