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.
The text was updated successfully, but these errors were encountered:
prathamesh0
changed the title
writeStateDiffAt API call writes statediffs for all addresseswriteStateDiffAt API call writes statediffs for all addresses
Jul 25, 2022
prathamesh0
changed the title
writeStateDiffAt API call writes statediffs for all addresseswriteStateDiffAt writes all statediffs even when watching specific addresses in direct indexing
Jul 25, 2022
writeStateDiffAt
) take statediff params as an argument. IfWatchedAddresses
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.writeStateDiffAt
calls before direct indexing for that block is completed. As a consequence, statediffs for all the addresses get indexed unnecessarily.WatchedAddresses
is not explicitly set in the passed arguments, use watched addresses from direct indexing params while serving statediff API calls.The text was updated successfully, but these errors were encountered: