Merge pull request #525 from PR0M3TH3AN/codex/add-unit-test-for-client-initialization

Reconnect Nostr client after relay updates
This commit is contained in:
thePR0M3TH3AN
2025-07-13 22:31:00 -04:00
committed by GitHub

View File

@@ -282,6 +282,7 @@ class NostrClient:
signer = NostrSigner.keys(self.keys)
self.client = Client(signer)
self._connected = False
# Immediately reconnect using the updated relay list
self.initialize_client_pool()
def retrieve_json_from_nostr_sync(