diff --git a/snapshot/src/core/dedup.ts b/snapshot/src/core/dedup.ts index 8c19983..fb6275c 100644 --- a/snapshot/src/core/dedup.ts +++ b/snapshot/src/core/dedup.ts @@ -2,6 +2,8 @@ import type { SignedEvent } from './types.ts' export function dedupByDtag(events: SignedEvent[]): SignedEvent[] { const byDtag = new Map() + // Bei gleicher created_at gewinnt das zuerst gesehene event (relay-delivery- + // reihenfolge ist nicht-deterministisch, equal-timestamp = aequivalent). for (const ev of events) { const d = ev.tags.find((t) => t[0] === 'd')?.[1] if (!d) continue