mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-05 14:57:42 +00:00
While a subscription purchase's coverage runs, issueBadge is unchanged and makes no store call. Once it has ended, the service asks the store at most once an hour per subscription, stamping every attempt, and answers from the stored state in between; a failed check is retried after the whole interval. A grantable charge is planned from the tip at the store's period start, signed, and written with its issuance and state in one transaction that re-reads the tip, answering internal if it moved. Any other charge and the state are recorded without a ledger row. Every answer for a subscription purchase carries its state. Run: 001-badge-subscriptions, slice 4