mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 11:04:36 +00:00
- periodic_payout: fetch liability per mint/unit right before computing available balance, so a concurrent top-up can only shrink the payout - refund sweep: atomically claim each refund before redeeming; release the claim on failure so retries still happen and concurrent sweeps cannot misreport a sweep as client-collected - check_invoice_payment: catch BaseException so task cancellation after a successful mint still emits the reconciliation alert - tests: DB-guard race test where both mints succeed (exactly one credit); pool_size=1 test proving the fee payout releases its connection during the external send