mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
NIP-IA snapshots used whole-second timestamps, so rapid archive state
changes could lose to NIP-16's random same-second event-id tie-break and
strand stale state. Advance each snapshot past the current head and retry
from canonical archive state when a concurrent replacement wins or changes
the set before dispatch.
Add a focused archive-to-unarchive regression that verifies the final stored
snapshot advances and carries the canonical empty set.
Co-authored-by: Mongo <5c25403eab7271f9f94ddd4f2b270e8cac2c92e2c830c51877cca6ec974ffb3f@buzz.block.builderlab.xyz>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
(cherry picked from commit 1ad28a44b9)