Skip to content
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

feat(relayer): Add flag to be able to index past blocks to crawl for missed messages #15547

Merged
merged 6 commits into from
Jan 25, 2024

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented Jan 22, 2024

There are situations where a message is missed when indexing, or perhaps needs to be picked up again. These situations have arisen in the current testnet, and seem to be related to the restarting of the processors. It is also possible for a relayer to have an issue processing a message for a variety of reasons (gas, misseed transaction, nonce out of order, etc), although unlikely.

It would be best to have a second set of indexers running, that crawl older blocks, and find any unprocessed-but-processable messages (messages that still have EventStatus New), and re-add them to the same queue that the processors pick up from.

This secondary mode will ensure robustness of the bridge relayer for mainnet.

Copy link

vercel bot commented Jan 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bridge-ui-v2-a6 ✅ Ready (Inspect) Visit Preview Jan 24, 2024 7:45pm

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 78 lines in your changes are missing coverage. Please review.

Comparison is base (0e24d2d) 27.15% compared to head (33aef48) 26.74%.

Files Patch % Lines
packages/relayer/indexer/handle_event.go 0.00% 39 Missing ⚠️
packages/relayer/indexer/indexer.go 28.00% 29 Missing and 7 partials ⚠️
...ackages/relayer/indexer/detect_and_handle_reorg.go 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           alpha-6   #15547      +/-   ##
===========================================
- Coverage    27.15%   26.74%   -0.42%     
===========================================
  Files           94       97       +3     
  Lines         5700     5908     +208     
===========================================
+ Hits          1548     1580      +32     
- Misses        3988     4156     +168     
- Partials       164      172       +8     
Flag Coverage Δ *Carryforward flag
eventindexer 17.28% <ø> (ø) Carriedforward from 0e24d2d
guardian-prover-health-check 34.84% <ø> (ø) Carriedforward from 0e24d2d
relayer 38.25% <33.33%> (-2.37%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidtaikocha davidtaikocha added this pull request to the merge queue Jan 25, 2024
Merged via the queue into alpha-6 with commit d2eda59 Jan 25, 2024
18 checks passed
@davidtaikocha davidtaikocha deleted the relayer_index_past_txs branch January 25, 2024 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants