Describe the feature
Add an in-memory cache of user operations for use in eth_getUserOperationByHash and eth_getUserOperationReceipt such that these API methods can be served locally in the bundler vs needing to query the node. Can keep a cache of N blocks and if we miss, can query the node. This will increase latency on calls for historical data, so it should be carefully considered.
Taken to its extreme, we could provide a full cache database on the Rundler node of all UOs. Nodes would sync with the chain and then write to the DB with each block.
Describe the feature Add an in-memory cache of user operations for use in
eth_getUserOperationByHash
andeth_getUserOperationReceipt
such that these API methods can be served locally in the bundler vs needing to query the node. Can keep a cache of N blocks and if we miss, can query the node. This will increase latency on calls for historical data, so it should be carefully considered.Taken to its extreme, we could provide a full cache database on the Rundler node of all UOs. Nodes would sync with the chain and then write to the DB with each block.