Skip to content

Commit

Permalink
default startBlock to 1 (#2019)
Browse files Browse the repository at this point in the history
* default startBlock to 1

* update changelog
  • Loading branch information
guplersaxanoid authored Sep 13, 2023
1 parent d183c23 commit 8b445b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/node-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Infinite recursion in setValueModel with arrays (#1993)
- Fix health checks for Networks that produce batched blocks (#2005)
- Update `@willsoto/nestjs-prometheus` version to `5.4.0` (#2012)
- set default startBlock of datasources to 1 (#2019)

### Changed
- Move more code from node to node-core. Including configure module, workers (#1797)
Expand Down
1 change: 1 addition & 0 deletions packages/node-core/src/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export async function updateDataSourcesV1_0_0<DS extends BaseDataSource, CDS ext
// force convert to updated ds
return Promise.all(
_dataSources.map(async (dataSource) => {
dataSource.startBlock = dataSource.startBlock ?? 1;
const entryScript = await loadDataSourceScript(reader, dataSource.mapping.file);
const file = await updateDataSourcesEntry(reader, dataSource.mapping.file, root, entryScript);
if (isCustomDs(dataSource)) {
Expand Down

0 comments on commit 8b445b4

Please sign in to comment.