Detect if reth is synced or not from an extension #8133
Labels
A-sdk
Related to reth's use as a library
C-enhancement
New feature or request
S-needs-investigation
This issue requires detective work to figure out what's going wrong
Describe the feature
I have a reth extension where part of its function is driven by payload events from the payload builder.
E.g. https://github.com/ralexstokes/mev-rs/blob/86bd5fee136889cccec75e3efd29269cc2cbaf50/mev-build-rs/src/auctioneer/service.rs#L352
When I launch the extension, the reth node is usually out of sync by at least a few blocks and sends payload attributes events for "stale" blocks. I'd like to try detecting if the node is synced or not and waiting on some kind of event that this is the case.
Additional context
No response
The text was updated successfully, but these errors were encountered: