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

improve(relayer): Parallel processing for destination chain fills #1346

Merged
merged 7 commits into from
Mar 25, 2024

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented Mar 22, 2024

Relayer fills are currently processed as a flat array. When messages are involved this requires simulation of the fill on the destination chain, thus incurring delay. In these cases, take the opportunity to process other fills whilst awaiting the outcome of the simulation. This is also another step towards containing RPC misbehaviour to the affected chain and preventing contagion to other destinations.

Relayer fills are currently processed as a flat array. When messages are
involved this requires simulation of the fill on the destination chain,
thus incurring delay. In these cases, take the opportunity to process
other fills whilst awaiting the outcome of the simulation. This is also
another step towards containing RPC misbehaviour to the affected chain
and preventing contagion to other destinations.
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.

LGTM

Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

Two nits

src/relayer/Relayer.ts Outdated Show resolved Hide resolved
src/relayer/Relayer.ts Show resolved Hide resolved
@pxrl pxrl merged commit 80fe329 into master Mar 25, 2024
4 checks passed
@pxrl pxrl deleted the pxrl/parallelRelay branch March 25, 2024 19:52
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