Return machines should log accept, store and payout as separate events
A bottle-return machine that records a single "recycled" entry can produce false records when its network connection fails. The proposed fix splits each visit into three device-verifiable events: accept, when a container is matched and committed locally; store, when the container is actually retained; and payout, when the deposit or reward is issued. Accept should be saved on the device before any mechanical movement, keyed by machine ID and a local sequence rather than a server clock. A payout that fails because the scheme API is down should be queued without rolling back the accept, and replays after reconnection should return the original IDs to avoid double payment or lost containers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in