aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/credits.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/credits.go')
-rw-r--r--internal/casino/credits.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/internal/casino/credits.go b/internal/casino/credits.go
index 19364da..8ef8868 100644
--- a/internal/casino/credits.go
+++ b/internal/casino/credits.go
@@ -73,13 +73,10 @@ func walletErrorMessage(err error, context ...string) string {
return "You don't have enough chips and credits for that bet."
}
-// payoutFailedMessage explains a settlement the wallet could not persist:
-// the journal record for the payout stays open, so startup recovery will
-// re-apply the owed amount. Games must NOT announce such a payout as paid.
// payoutFailedMessage explains a settlement the wallet could not apply right
-// now. This covers both a persistence failure and a credit-cap block (the
-// journal record stays open either way), so it must not assert a persistence
-// failure as the cause. Recovery re-applies the owed amount.
+// now: a persistence failure or a credit-cap block. Games must NOT announce
+// such a payout as paid. The stake stays pending, so it is returned by a
+// shutdown refund or at the next startup rather than paid as winnings.
func payoutFailedMessage() string {
- return "The house could not process your payout right now. Your settlement is recorded and will be restored when you return."
+ return "The house could not process your payout right now. Your stake is safe and will be returned if the settlement cannot be completed."
}