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

refactor: Confine oldestTime update to Dataworker #1865

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented Oct 16, 2024

The Dataworker is the only SpokePoolClient user that needs to know the time at a historical SpokePool block, so permit it to resolve this on the fly and free up other users from having to query it.

The Dataworker is the only SpokePoolClient user that needs to know the
time at a historical SpokePool block, so permit it to resolve this on
the fly and free up other users from having to query it.
@pxrl
Copy link
Contributor Author

pxrl commented Oct 16, 2024

nb. Build will fail until across-protocol/sdk#752 is merged.

Copy link
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this just one question to maybe improve performance

src/dataworker/DataworkerUtils.ts Show resolved Hide resolved
@pxrl pxrl requested a review from nicholaspai October 25, 2024 09:00
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.

2 participants