Remove contracts on reset watcher (#215)

This commit is contained in:
2022-11-04 10:41:48 +05:30
committed by GitHub
parent 266442a6d9
commit 0e464385c0
+2
View File
@@ -994,6 +994,8 @@ export class Indexer {
await this._db.deleteEntitiesByConditions(dbTx, entity, { blockNumber: MoreThan(blockNumber) });
}
await this._db.deleteEntitiesByConditions(dbTx, 'contract', { startingBlock: MoreThan(blockNumber) });
await this._db.deleteEntitiesByConditions(dbTx, 'block_progress', { blockNumber: MoreThan(blockNumber) });
const syncStatus = await this.getSyncStatus();