Skip to content

Conversation

@ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented Nov 24, 2025

This PR pulls in two changes from the main MEL PR

  • Changes to melextraction package where the functions have been updated to utilize logs instead of tx receipts, and
  • Implementation of a logs and headers prefetcher struct that fetches block headers and relevant logs required for running MEL in native mode at a reasonable speed

Previously MEL Processed parent chain blocks by going over all txs- fetching receipts for each tx- to eventually work on the tx log- this was inefficient leading to significant delay in catchup times and once caught up to stay catch up was just very hard. We solve this by directly processing the MEL relevant logs in a block! And to even speed this up- we have a logsAndHeadersFetcher to fetch relevant logs (through eth_getLogs query) and headers (by making batch rpc requests to eth_getBlockByNumber) ahead of time.

@github-actions
Copy link

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants