Skip to content

Commit

Permalink
End exit (#2157)
Browse files Browse the repository at this point in the history
* Fix not exiting cleanly when all datasources have reached end block

* Update changelog
  • Loading branch information
stwiname authored Nov 12, 2023
1 parent 1134672 commit a7d7a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/node-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- When using store get methods the `save` function would be missing
- Not indexing cleanly when all datasources have reached their end block

### Fixed
- Workers selecting apis for endpoints that aren't connected (#2154)
Expand Down
2 changes: 1 addition & 1 deletion packages/node-core/src/indexer/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export abstract class BaseProjectService<API extends IApi, DS extends BaseDataSo
hasDataSourcesAfterHeight(height: number): boolean {
const datasourcesMap = this.getDataSourcesMap();
//check if there are datasoures for current height
if (datasourcesMap.get(height).length) {
if (datasourcesMap.get(height + 1).length) {
return true;
}

Expand Down

0 comments on commit a7d7a44

Please sign in to comment.