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
EthereumEventListener's have a feature where they're allowed to cache events before they're being processed, which seems like it's adding a fair amount of complexity without additional value.
The way it works is that if a certain ethereum event listener is allowed to sync, but not processes, it would store ethereum events (eth_getLogs) into the cache field of it's internal struct:
These two have a relationship that's not well understood. For example, a caller with finality_margin: 0 would ask Root Chain Coordinator get_synced_info/2
that would reply with:
The suggested simplification would drop cached completely and only ask for as much events as it's allowed to process.
+1. Imho this caching is too close & too tied to the business logic. Also given the current eth_getLogs rate I'm not sure if this caching is used that much to worth the added complexity to the sync.
EthereumEventListener
's have a feature where they're allowed to cache events before they're being processed, which seems like it's adding a fair amount of complexity without additional value.The way it works is that if a certain ethereum event listener is allowed to sync, but not processes, it would store ethereum events (eth_getLogs) into the
cache
field of it's internal struct:The suggested simplification would drop
cached
completely and only ask for as much events as it's allowed to process.Cache gets filled when setup like this is used in Root Chain Coordinator setup:
Exit Processor would fill
cached
with the logs difference between depositor height and rootchain height (ethereum height).The text was updated successfully, but these errors were encountered: