diff options
| author | Adam Soltys <[email protected]> | 2026-08-01 17:49:50 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-01 17:49:50 -0700 |
| commit | 4ca5dd0afa7848d100f0b99be7b53f5dcb2fd061 (patch) | |
| tree | f174344ded20ad4cef4315bed5c5f8f9d3bb9708 /src/features/sync.js | |
| parent | a64611377c646415bc0c21a8bb96b9a079c4ce2b (diff) | |
| download | coinosv3-4ca5dd0afa7848d100f0b99be7b53f5dcb2fd061.tar.gz coinosv3-4ca5dd0afa7848d100f0b99be7b53f5dcb2fd061.zip | |
Never let a losing device's error shout over a paid zap
Loose leader election for pay_invoice across a user's open tabs: before
handling, defer a beat and stay silent if any reply for the request
already exists on the relays; and before sending an ERROR reply,
re-check — a device that lost the race (mid-init, stale state) was
replying 'superseded' after another device's success, and clients
trusted the later error, marking paid zaps as failed.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/features/sync.js')
0 files changed, 0 insertions, 0 deletions
