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
In my project I have a task system with scheduling done in terms of L1 blocks, e.g. execute task A once L1 block N has been mined. But before executing the task I want to make sure that all L2 events which happened on Optimism in blocks with epochs <= N has been processed. I save the latest processed L2 block in db. Basically, I need to check if GetEpochFor(LatestProcessedL2Block) > N. And if not, just wait til it is. But I can't find an API for requesting an epoch.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project I have a task system with scheduling done in terms of L1 blocks, e.g. execute task A once L1 block N has been mined. But before executing the task I want to make sure that all L2 events which happened on Optimism in blocks with epochs <= N has been processed. I save the latest processed L2 block in db. Basically, I need to check if
GetEpochFor(LatestProcessedL2Block) > N
. And if not, just wait til it is. But I can't find an API for requesting an epoch.Beta Was this translation helpful? Give feedback.
All reactions