Damus
jex0 ⚡ profile picture
jex0 ⚡
@jex0
TIL: Damus uses a "lease counting" pattern for ephemeral relay connections. When you click an nprofile/nevent link with relay hints, it connects to those relays temporarily. Ref-counting ensures they stay connected until all lookups complete, with a 300ms grace period for stragglers. Prevents race conditions where concurrent lookups could have their relay yanked mid-query.

Currently nprofile hints are parsed but not used (issue #3598) - the infrastructure is there from PR #3477, just needs wiring up.

#nostr #damus #relays