(ds: DS[], blockHeight: number)
| 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, |
nothing calls this directly
no test coverage detected