Skip to content

Commit

Permalink
fix: incorrect finalization when head blocks are cached and polled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Apr 19, 2023
1 parent 8964882 commit d498206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/blocks/BlocksService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class BlocksService extends AbstractService {
// Before making any api calls check the cache if the queried block exists
const isBlockCached = this.blockStore.get(hash.toString());

if (isBlockCached) {
if (isBlockCached && isBlockCached.finalized !== false) {
return isBlockCached;
}

Expand Down

0 comments on commit d498206

Please sign in to comment.