sdk: track event relays on kvstore.

This commit is contained in:
fiatjaf
2025-01-15 00:30:24 -03:00
parent 795f9516ae
commit ba38c28b99
2 changed files with 31 additions and 0 deletions

View File

@@ -112,6 +112,8 @@ func NewSystem(mods ...SystemModifier) *System {
sys.Pool = nostr.NewSimplePool(context.Background(),
nostr.WithAuthorKindQueryMiddleware(sys.TrackQueryAttempts),
nostr.WithEventMiddleware(sys.TrackEventHints),
nostr.WithEventMiddleware(sys.TrackEventRelays),
nostr.WithDuplicateMiddleware(sys.TrackEventRelaysD),
nostr.WithPenaltyBox(),
)