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: Remove SpokePoolClient oldestTime lookup #752

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented Oct 16, 2024

The oldestTime attribute is only needed for a very specific check when validating block ranges in the dataworker. Removing it from the standard SpokePoolClient update flow is a simplification for non-dataworker use-cases - i.e. relayer, monitor, finalizer. The dataworker can instead resolve the timestamp of the searchConfig fromBlock on demand.

The underlying motivation for this change is to simplify the interface between the relayer and the external SpokePool listener processes in order to make way for additional updates.

The `oldestTime` attribute is only needed for a very specific check when
validating block ranges in the dataworker. Removing it from the standard
SpokePoolClient update flow is a simplification for non-dataworker
use-cases - i.e. relayer, monitor, finalizer. The dataworker can instead
resolve the timestamp of the searchConfig fromBlock on demand.

The underlying motivation for this change is to simplify the interface
between the relayer and the external SpokePool listener processes.
@pxrl pxrl requested a review from nicholaspai October 16, 2024 10:27
@pxrl pxrl requested review from dohaki and gsteenkamp89 October 24, 2024 10:17
Copy link
Contributor

@dohaki dohaki left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pxrl pxrl merged commit da9b06e into master Oct 24, 2024
4 checks passed
@pxrl pxrl deleted the pxrl/oldestTime branch October 24, 2024 13:08
pxrl added a commit that referenced this pull request Oct 25, 2024
pxrl added a commit that referenced this pull request Oct 25, 2024
pxrl added a commit that referenced this pull request Oct 25, 2024
)

The removal of oldestTime exposes a test issue in the relayer. The 
removal itself is fine, but the test logic is tricky to unpick, so back
this out for now.

This reverts commit da9b06e.
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