mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 00:44:06 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user