diff options
| author | historia <[not public]> | 2026-09-18 21:36:36 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 21:36:36 -0400 |
| commit | a8a67482bbff8297a96adff65d2fd7029ed998cc (patch) | |
| tree | e84f8ba636c8f2edb4d2ff8b45d7cff7298fa7cc /internal/casino/credits.go | |
| parent | ff04d26ce90d6b411a04a2fb59f7c24ceefb161f (diff) | |
| download | thehouseoficarus-a8a67482bbff8297a96adff65d2fd7029ed998cc.tar.gz | |
refactor: replace economy journal with single-file pending-wager wallet
Diffstat (limited to 'internal/casino/credits.go')
| -rw-r--r-- | internal/casino/credits.go | 11 |
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." } |
