MCPcopy Index your code
hub / github.com/subquery/subql / assertDataSources

Function assertDataSources

packages/node-core/src/indexer/indexer.manager.ts:157–170  ·  view source on GitHub ↗
(ds: DS[], blockHeight: number)

Source from the content-addressed store, hash-verified

155 }
156
157 private assertDataSources(ds: DS[], blockHeight: number) {
158 if (!ds.length) {
159 exitWithError(
160 `Issue detected with data sources: \n
161 Either all data sources have a 'startBlock' greater than the current indexed block height (${blockHeight}),
162 or they have an 'endBlock' less than the current block. \n
163 Solution options: \n
164 1. Adjust 'startBlock' in project.yaml to be less than or equal to ${blockHeight},
165 and 'endBlock' to be greater than or equal to ${blockHeight}. \n
166 2. Delete your database and start again with the currently specified 'startBlock' and 'endBlock'.`,
167 logger
168 );
169 }
170 }
171
172 protected async indexData<K extends keyof FilterMap>(
173 kind: K,

Callers

nothing calls this directly

Calls 1

exitWithErrorFunction · 0.90

Tested by

no test coverage detected