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

solana: Add no registered transceivers check #514

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

nvsriram
Copy link
Collaborator

This PR is based on #298.

johnsaigle and others added 2 commits September 9, 2024 23:43
Add guard on transfer instructions to prevent a transfer from being
processed when no transceivers are registered. This is done by checking
the `next_transceiver_id` field in the Config. This field
auto-increments when a transceiver is added. If this value is 0, then
the program is in a state where no transceivers have been registered.
@nvsriram nvsriram marked this pull request as ready for review September 10, 2024 13:37
nonergodic
nonergodic previously approved these changes Sep 10, 2024
@nvsriram nvsriram merged commit 6cc8bee into main Sep 10, 2024
9 checks passed
@nvsriram nvsriram deleted the solana/empty-transceiver-guard branch September 10, 2024 21:02
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.

4 participants