Skip to content

Commit

Permalink
sdk: do not track hints from ephemeral events.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 17, 2024
1 parent 2c09338 commit 2b04ea9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ func (sys *System) trackEventHints(ie nostr.IncomingEvent) {
if IsVirtualRelay(ie.Relay.URL) {
return
}
if ie.Kind < 30000 && ie.Kind >= 20000 {
return
}

switch ie.Kind {
case nostr.KindRelayListMetadata:
Expand Down

0 comments on commit 2b04ea9

Please sign in to comment.