Avoid updating StateSyncStatus table when enableState flag is set to false (#440)

* Handle zero hash canonical block incase of FEVM null block

* Fix json-bigint parse in processBatchEvents

* Avoid updating SyncStatus table when enableState is false
This commit is contained in:
2023-10-26 15:14:46 +05:30
committed by GitHub
parent 445d5a9293
commit 43463af1f2
5 changed files with 55 additions and 39 deletions
+4 -4
View File
@@ -189,16 +189,16 @@ export class Indexer implements IndexerInterface {
return undefined;
}
async updateStateSyncStatusIndexedBlock (blockNumber: number, force?: boolean): Promise<StateSyncStatusInterface> {
return {} as StateSyncStatusInterface;
async updateStateSyncStatusIndexedBlock (blockNumber: number, force?: boolean): Promise<StateSyncStatusInterface | undefined> {
return undefined;
}
async updateStateSyncStatusCheckpointBlock (blockNumber: number, force?: boolean): Promise<StateSyncStatusInterface> {
return {} as StateSyncStatusInterface;
}
async getLatestCanonicalBlock (): Promise<BlockProgressInterface> {
return {} as BlockProgressInterface;
async getLatestCanonicalBlock (): Promise<BlockProgressInterface | undefined> {
return undefined;
}
isWatchedContract (address : string): ContractInterface | undefined {