Update getFullBlocks usage (#213)

* Update getFullBlocks usage to add block number arg

* Add skipStateFieldsUpdate config for uniswap-watcher

Co-authored-by: nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
prathamesh0
2022-11-03 16:49:41 +05:30
committed by GitHub
co-authored by nabarun
parent be65ca45ea
commit 266442a6d9
9 changed files with 18 additions and 13 deletions
@@ -390,9 +390,9 @@ export class Indexer implements IndexerInterface {
}
{{#if (subgraphPath)}}
async processBlockAfterEvents (blockHash: string): Promise<void> {
async processBlockAfterEvents (blockHash: string, blockNumber: number): Promise<void> {
// Call subgraph handler for block.
await this._graphWatcher.handleBlock(blockHash);
await this._graphWatcher.handleBlock(blockHash, blockNumber);
// Persist subgraph state to the DB.
await this.dumpSubgraphState(blockHash);