Files
ngit-grasp/src
DanConwayDev e519d00578 fix(identity): select lower-ID owner events on timestamp ties
Restoring owner metadata from index relays selected the higher event ID when timestamps matched, contrary to NIP-01 replacement ordering.

Use the shared replacement comparator after filtering by owner, kind and valid signature. This affects profiles and relay lists fetched for identity adoption; publication gating and retry policy are unchanged.

Validation: the regression failed before the fix and passes for both kinds, including newer events and invalid or unrelated candidates. Focused owner tests, workspace all-target Clippy and formatting pass.

Assisted-by: GPT-6
2026-09-17 15:48:53 +00:00
..