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
Right now, we're fetching the last indexed block by finding the max block number in chain_events. Because we insert log types sequentially, there's a chance the program crashes after inserting some log types for a stretch of blocks but not all, leaving the other log types absent when the sync restarts and fetches the latest block number.
The easiest way to solve this is probably by getting the max block number in chain_events for each event type. However, this will make the log collection messier (we'd be fetching logs for different ranges for each event type, since we don't want any duplicate events), so I'm not 100% convinced this is the best approach.
The text was updated successfully, but these errors were encountered:
Right now, we're fetching the last indexed block by finding the max block number in
chain_events
. Because we insert log types sequentially, there's a chance the program crashes after inserting some log types for a stretch of blocks but not all, leaving the other log types absent when the sync restarts and fetches the latest block number.The easiest way to solve this is probably by getting the max block number in
chain_events
for each event type. However, this will make the log collection messier (we'd be fetching logs for different ranges for each event type, since we don't want any duplicate events), so I'm not 100% convinced this is the best approach.The text was updated successfully, but these errors were encountered: