Safe spam mode doesn't work until restart #852

Open
opened 2024-09-11 00:49:22 +12:00 by dtonon · 1 comment
dtonon commented 2024-09-11 00:49:22 +12:00 (Migrated from github.com)
https://njump.me/nevent1qqsqqqzpfxzhv3h65dzdw3jeqfc37epmschtvdqy5kg8rmu6hl7dgmgprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hszxmhwden5te0wfjkccte9emk2um5v4exucn5vvhxxmmd9uk3mxuf The activation should be immediate.
mikedilger commented 2024-09-11 07:57:46 +12:00 (Migrated from github.com)

Two things have to happen:

  1. When switching the setting, we disconnect all relays.
  2. When switching spamsafe on a relay, we disconnect that relay.

Existing logic will reconnect relays that it needs.

Ideally we could just close all spamsafe-affected subscriptions, but disconnect is easier and will cause less bugs.

Two things have to happen: 1) When switching the setting, we disconnect all relays. 2) When switching spamsafe on a relay, we disconnect that relay. Existing logic will reconnect relays that it needs. Ideally we could just close all spamsafe-affected subscriptions, but disconnect is easier and will cause less bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#852
No description provided.