Remove contracts on reset watcher (#215)

This commit is contained in:
nikugogoi 2022-11-04 10:41:48 +05:30 committed by GitHub
parent 266442a6d9
commit 0e464385c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();