What is Nostr?
cody / Cody Tseng
npub1syj…f6wl
2025-03-17 03:05:10
in reply to nevent1q…ac0l

cody on Nostr: This issue is caused by calling `relay.auth()` twice in quick succession. Since both ...

This issue is caused by calling `relay.auth()` twice in quick succession. Since both auth events were signed within the same second, they are identical. Looking at the nostr-tools source code, I found that this prevents the first `relay.auth()` call from ever returning.

I'll find a way to avoid consecutive calls to `relay.auth()`, but it might be better to modify nostr-tools to handle this properly.

https://github.com/nbd-wtf/nostr-tools/blob/9a612e59a254fd2fb54127073051ac47031858d1/abstract-relay.ts#L251
Author Public Key
npub1syjmjy0dp62dhccq3g97fr87tngvpvzey08llyt6ul58m2zqpzps9wf6wl