upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/mod.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 22:55:36 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-09 22:55:36 +0000
commit615bfa0e3e892a22f1691a6a1172ea755a7c3149 (patch)
tree2be46f2a647d5f9ba09d615dfd94c98ea6c9cfb0 /src/git/mod.rs
parent953a4be45dda7477d3db8099722856eb11eb6bb2 (diff)
improve: detect and skip negentropy for unsupported relays
- Upgrade NOTICE log level to INFO when relay rejects negentropy (envelope/NEG- errors) - Track NIP-77 support status per relay connection to avoid repeated failed attempts - Mark relay as unsupported when NOTICE rejection or timeout occurs - Skip negentropy on subsequent syncs during same connection session - Reset support status on reconnect to allow retry after relay upgrades This reduces log noise and eliminates 10-second timeout delays on each historic sync attempt for relays that don't support NIP-77 negentropy. Fixes negentropy-timeout-10-seconds issue by learning from relay behavior.
Diffstat (limited to 'src/git/mod.rs')
0 files changed, 0 insertions, 0 deletions