Remove prefetchBlocksInMem flag along with functionality (#474)

* Remove prefetchBlocksInMem flag

* Remove Indexer method fetchEventsAndSaveBlocks

* Throw error if pruning not safe

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
2023-11-16 19:03:13 +05:30
committed by GitHub
co-authored by neeraj
parent 3e898914ba
commit 7c8f84b1dc
8 changed files with 29 additions and 294 deletions
@@ -114,12 +114,6 @@ export class Indexer implements IndexerInterface {
return '';
}
async fetchEventsAndSaveBlocks (blocks: DeepPartial<BlockProgressInterface>[]): Promise<{ blockProgress: BlockProgressInterface, events: DeepPartial<EventInterface>[] }[]> {
assert(blocks);
return [];
}
async fetchAndSaveFilteredEventsAndBlocks (startBlock: number, endBlock: number): Promise<{
blockProgress: BlockProgressInterface;
events: DeepPartial<EventInterface>[];