Skip to content

Improve authorization checks and retries#535

Closed
IAvecilla wants to merge 5 commits intomainfrom
fatal-authorization
Closed

Improve authorization checks and retries#535
IAvecilla wants to merge 5 commits intomainfrom
fatal-authorization

Conversation

@IAvecilla
Copy link
Contributor

@IAvecilla IAvecilla commented Feb 2, 2026

Mainly two improvements are introduced with this PR:

  • The message for the error AccountNotInitialized was confusing and we always keep retrying to join a run where the client does not have authorization. This will prevent the automatic retry and also make the error explicit
  • Now the can_join command and the train will both try to join the run as it was permissionless (using the system program as default) and fallback to the --authorizer pubkey or if not provided try to use the pubkey of the user running the command. This is just to avoid always using the systems program in case someone forgots to use the authorizer flag

@IAvecilla IAvecilla self-assigned this Feb 2, 2026
@IAvecilla IAvecilla changed the title Mark AccountNotInitialized as fatal error Improve authorization checks and retries Feb 2, 2026
@IAvecilla IAvecilla marked this pull request as draft February 2, 2026 20:41
@IAvecilla
Copy link
Contributor Author

IAvecilla commented Feb 3, 2026

All this new logic is being added to #514 since it checks authorization previous to join the run and is already improving the error messages

@IAvecilla IAvecilla closed this Feb 3, 2026
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.

1 participant