Skip to content

feat: add shutdown to mock cctp relayer #300

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

Open
bekauz opened this issue Apr 2, 2025 · 0 comments
Open

feat: add shutdown to mock cctp relayer #300

bekauz opened this issue Apr 2, 2025 · 0 comments
Assignees

Comments

@bekauz
Copy link
Contributor

bekauz commented Apr 2, 2025

description

In order to test various adversarial scenarios, MockCctpRelayer should expose a shutdown option that will cause it to stop relaying the packets.

This should be implemented by providing a .shutdown() function which will gracefully break out of the loop.

Internally this should likely use the tokio_util::sync::CancellationToken.

@bekauz bekauz self-assigned this Apr 2, 2025
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

No branches or pull requests

1 participant