Skip to content

Commit 3a7c7f7

Browse files
acuaricamwb-al
authored andcommitted
fix: remove custom cache logic from getBlockReceipts (hiero-ledger#3836)
Signed-off-by: Luis Mastrangelo <[email protected]>
1 parent cac0858 commit 3a7c7f7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/relay/src/lib/services/ethService/blockService/BlockService.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,6 @@ export class BlockService implements IBlockService {
138138
throw predefined.RESOURCE_NOT_FOUND(`Block: ${blockHashOrBlockNumber}`);
139139
}
140140

141-
const blockNumber = block.number;
142-
const cacheKey = `${constants.CACHE_KEY.ETH_GET_BLOCK_RECEIPTS}_${blockNumber}`;
143-
const cachedResponse = await this.cacheService.getAsync(cacheKey, constants.ETH_GET_BLOCK_RECEIPTS, requestDetails);
144-
if (cachedResponse) {
145-
return cachedResponse;
146-
}
147-
148141
const paramTimestamp: IContractResultsParams = {
149142
timestamp: [`lte:${block.timestamp.to}`, `gte:${block.timestamp.from}`],
150143
};

0 commit comments

Comments
 (0)