picoclaw/pkg/channels/buzz
PeterChrz 735cb0734e
fix(buzz): retry NIP-42 auth with backoff to fix race condition
The go-nostr RelayConnect returns immediately after the WebSocket
handshake, but the relay has not yet sent the AUTH challenge. Calling
relay.Auth() right away signs the auth event with an empty challenge
tag, which the Buzz relay rejects with 'auth-required: verification
failed'.

Retry the Auth() call up to 3 times with 1s backoff between attempts,
giving the relay time to deliver the challenge.
2026-08-11 21:58:13 -04:00
..
buzz.go fix(buzz): retry NIP-42 auth with backoff to fix race condition 2026-08-11 21:58:13 -04:00
buzz_test.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
handler.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00
init.go feat(channels): add Buzz (Nostr relay) channel 2026-08-11 21:41:16 -04:00