You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cherry pick #880 - simple cache for eth_call (#885)
* Add simple cache on `eth_call` (#880)
Adds a cache on eth_call request, based on `to` and `data` parameters for 200ms.
Signed-off-by: georgi-l95 <[email protected]>
* retrigger checks
---------
Signed-off-by: georgi-l95 <[email protected]>
Co-authored-by: Georgi Lazarov <[email protected]>
Copy file name to clipboardExpand all lines: packages/relay/tests/lib/eth.spec.ts
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2412,6 +2412,42 @@ describe('Eth calls using MirrorNode', async function () {
2412
2412
expect(result).to.equal("0x00");
2413
2413
});
2414
2414
2415
+
//Return once the value, then it's being fetched from cache. After the loop we reset the sdkClientStub, so that it returns nothing, if we get an error in the next request that means that the cache was cleared.
2416
+
it('eth_call should cache the response for 200ms',asyncfunction(){
0 commit comments