Hacker News new | ask | show | jobs
by accrual 364 days ago
That makes sense and is an elegant solution. This way one can check the balance at any time without recalculating, but we still have an audit log to find discrepancies when the balance is expected to be zero but is not.