Ledger::Save is public, unused and overwrites the shared ledger #4

Open
opened 2026-11-02 18:34:14 +00:00 by jorijnvdgraaf · 0 comments

Ledger::Save writes this process's whole copy of seat-ledger.json over the file. That is the last-writer-wins write Ledger::Update replaced on 2026-10-15, when one driver's save erased spend another had recorded. Nothing calls Save, at master or in 1.1.0, but it is still public, so a future caller would bring the lost update back.

A fix removes it.

Found by the 1.1.0 push gates.

`Ledger::Save` writes this process's whole copy of `seat-ledger.json` over the file. That is the last-writer-wins write `Ledger::Update` replaced on 2026-10-15, when one driver's save erased spend another had recorded. Nothing calls `Save`, at master or in 1.1.0, but it is still public, so a future caller would bring the lost update back. A fix removes it. Found by the 1.1.0 push gates.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Crafter.Review#4
No description provided.