Repository navigation
Add player unregistration method - #254
Merged
Merged
Conversation
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
gui1117
approved these changes
Nov 23, 2026
Comment on lines
1534
to
+1536
| /// There must be no game or the existing game must be in registration phase and the player | ||
| /// must have not signed up for the game. | ||
| /// must have not signed up for the game. A player that unregistered from the game signed | ||
| /// up for it. |
Member
There was a problem hiding this comment.
nit: I think it reads a bit clearer this way, wdyt?
Suggested change
| /// There must be no game or the existing game must be in registration phase and the player | |
| /// must have not signed up for the game. | |
| /// must have not signed up for the game. A player that unregistered from the game signed | |
| /// up for it. | |
| /// There must be no game or the existing game must be in registration phase and the player | |
| /// must have not signed up for the game, even if they then unregistered. |
Contributor
There was a problem hiding this comment.
I didn't apply because it doesn't feel 100% correct english.
Member
|
/cmd bench --pallet indiv_pallet_game |
Contributor
|
Command "bench --pallet indiv_pallet_game" has started 🚀 See logs here |
agustinustheo
approved these changes
Nov 24, 2026
Collaborator
|
We should let app folks know that this is no different than a plain absence from the game from the perspective of the player. |
andrzejSulkowski
approved these changes
Nov 24, 2026
andrzejSulkowski
enabled auto-merge (squash)
November 24, 2026 07:10
andrzejSulkowski
disabled auto-merge
November 24, 2026 08:49
|
Command "bench --pallet indiv_pallet_game" has finished ✅ See logs here Runtime weight deviation: |
gui1117
force-pushed
the
george-unregister-players
branch
from
November 24, 2026 20:15
57f0a68 to
0c1217d
Compare
gui1117
enabled auto-merge (squash)
November 24, 2026 20:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an
unregistercall inpallet-gamewhich lets registered players essentially mark themselves as absent while the game still accepts sign-ups. The player stays a player and the game counts them as absent. They can neither sign up again noroffboarduntil the game ends. Their airdrop entries stay in the draws but the player will not be able to claim if they win, which matches the absent behavior.Changes
NotRegisteredandRegistered(which encode like the previous booleanregisteredvariable) and it now hasUnregisteredto prevent re-registration and spam.unregisterjoins the one-time excess calls of the account participant origin in origin-restriction.