From a8a67482bbff8297a96adff65d2fd7029ed998cc Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 21:36:36 -0400 Subject: refactor: replace economy journal with single-file pending-wager wallet --- internal/casino/credits.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'internal/casino/credits.go') 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." } -- cgit v1.2.3