pathfinder icon indicating copy to clipboard operation
pathfinder copied to clipboard

Add caching support for transaction and event proofs

Open Mirko-von-Leipzig opened this issue 9 months ago • 0 comments

This should be done last.

Add caching to the transaction and event proofs. We don't store the merkle trie for these during sync - we only calculate them once off to verify the commitment values match. These RPC methods will therefore be expensive since they re-calculate the commitments for each call.

Adding caching will greatly improve matters here. This cache should also include values from the sync as these are likely to be popular.

We probably want request coalescing since it is likely that proofs for the same block will occur multiple times.

Mirko-von-Leipzig avatar Apr 30 '24 14:04 Mirko-von-Leipzig