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
Statediff APIs (like writeStateDiffAt) take statediff params as an argument. If WatchedAddresses field in these params argument is not set when making the API call, statediffs for all the addresses are written out even when direct indexing is restricted to a list of addresses.
If a watcher for some contract is running near chain head (with direct indexing configured to watch that contract), it may make writeStateDiffAt calls before direct indexing for that block is completed. As a consequence, statediffs for all the addresses get indexed unnecessarily.
When WatchedAddresses is not explicitly set in the passed arguments, use watched addresses from direct indexing params while serving statediff API calls.