-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: events index: record processed epochs and tipsets for events and eth_get_log blocks till requested tipset has been indexed #12080
Conversation
All checks have passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some opinions but this really needs a look by @rvagg (who has done more thinking on this than I have at this point).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks ok, but it's slightly risky so I'd be more comfortable having someone else look too, @Stebalien if available would be good
@rvagg Would love a review from @Stebalien too but which part do you find risky ? |
FYI, #12111 |
@Stebalien I have addressed all your review comments. Except for #12080 (comment) which I would like to address as part of the refactor in #12116 because that really fixes this in a clean way rather than patching the current broken dual write/dual read mechanism we have for ( |
@rvagg @Stebalien I'd like to merge this. Based on an offline conversation with @Stebalien -> he agrees this is good to go in it's current form as it does fix the missing event issue with We will prioritise #12116 next. |
Co-authored-by: Rod Vagg <[email protected]>
… eth_get_log blocks till requested tipset has been indexed (#12080) * record seen event epochs * create correct index * migrate to version 6 * fix typo * test both conditions * changes as per review * record reverted tipsets * see if tipsets has events and has not been reverted * sub/unsub tipset updates from the index * eth_get_logs should wait for events * fix naming * changes as per review * solve issue with missing events * use correct var * changes as per review * add unique constraint * fix test wait * check for events at min_height as well * Apply suggestions from code review Co-authored-by: Rod Vagg <[email protected]> * reduce duplication --------- Co-authored-by: Rod Vagg <[email protected]>
… eth_get_log blocks till requested tipset has been indexed (#12080) * record seen event epochs * create correct index * migrate to version 6 * fix typo * test both conditions * changes as per review * record reverted tipsets * see if tipsets has events and has not been reverted * sub/unsub tipset updates from the index * eth_get_logs should wait for events * fix naming * changes as per review * solve issue with missing events * use correct var * changes as per review * add unique constraint * fix test wait * check for events at min_height as well * Apply suggestions from code review Co-authored-by: Rod Vagg <[email protected]> * reduce duplication --------- Co-authored-by: Rod Vagg <[email protected]>
… eth_get_log blocks till requested tipset has been indexed (#12080) * record seen event epochs * create correct index * migrate to version 6 * fix typo * test both conditions * changes as per review * record reverted tipsets * see if tipsets has events and has not been reverted * sub/unsub tipset updates from the index * eth_get_logs should wait for events * fix naming * changes as per review * solve issue with missing events * use correct var * changes as per review * add unique constraint * fix test wait * check for events at min_height as well * Apply suggestions from code review Co-authored-by: Rod Vagg <[email protected]> * reduce duplication --------- Co-authored-by: Rod Vagg <[email protected]>
Closes #11640 and #12078