diff --git a/nostr_dvm/utils/nostr_utils.py b/nostr_dvm/utils/nostr_utils.py index 8a7d431..49bbe10 100644 --- a/nostr_dvm/utils/nostr_utils.py +++ b/nostr_dvm/utils/nostr_utils.py @@ -251,6 +251,11 @@ async def send_event_outbox(event: Event, client, dvm_config) -> EventId: try: await outboxclient.connect() event_id = await outboxclient.send_event(event) + for relay in relays: + try: + await outboxclient.force_remove_relay(relay) + except: + print("Error removing relay: " + relay) except Exception as e: # Love yourself then. event_id = None diff --git a/nostr_dvm/utils/outbox_utils.py b/nostr_dvm/utils/outbox_utils.py index 067a888..3c30eaf 100644 --- a/nostr_dvm/utils/outbox_utils.py +++ b/nostr_dvm/utils/outbox_utils.py @@ -65,6 +65,7 @@ AVOID_OUTBOX_RELAY_LIST = ["wss://nos.lol", "wss://momostr.pink", "wss://nostr.bitcoinlighthouse.de", "wss://140.f7z.io", "wss://relay.nostrcheck.me", "wss://relay.mostr.pub", "wss://purplepag.es", "wss://nostr.bitcoiner.social", "wss://relay.galtsgulch.cc", - "ws://oxtrdevav64z64yb7x6rjg4ntzqjhedm5b5zjqulugknhzr46ny2qbad.onion" + "ws://oxtrdevav64z64yb7x6rjg4ntzqjhedm5b5zjqulugknhzr46ny2qbad.onion", + "wss://relay.f7z.io" ] diff --git a/tests/generic_dvm_autotopic_feed.py b/tests/generic_dvm_autotopic_feed.py index 8d9af06..07dc8a2 100644 --- a/tests/generic_dvm_autotopic_feed.py +++ b/tests/generic_dvm_autotopic_feed.py @@ -104,7 +104,7 @@ def playground(announce=False): keys = Keys.parse(sk.to_hex()) relaylimits = RelayLimits.disable() - opts = (Options().relay_limits(relaylimits)) + opts = Options().relay_limits(relaylimits) cli = Client.with_opts(keys, opts) for relay in dvm.dvm_config.RELAY_LIST: