upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sync/relay_connection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/relay_connection.rs')
-rw-r--r--src/sync/relay_connection.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sync/relay_connection.rs b/src/sync/relay_connection.rs
index 99fc4ea..82e85ee 100644
--- a/src/sync/relay_connection.rs
+++ b/src/sync/relay_connection.rs
@@ -478,6 +478,18 @@ impl RelayConnection {
478 true 478 true
479 } 479 }
480 480
481 /// Mark this relay as not supporting NIP-77 negentropy (for external callers)
482 ///
483 /// This is called by SyncManager when negentropy retry returns zero events,
484 /// indicating the relay's negentropy implementation is broken. Future batches
485 /// will skip negentropy and use REQ+EOSE directly.
486 ///
487 /// Note: Internal code in this struct uses direct field access instead.
488 pub fn mark_negentropy_unsupported(&self) {
489 self.nip77_supported
490 .store(2, std::sync::atomic::Ordering::Relaxed);
491 }
492
481 /// Perform a negentropy sync diff (dry run) to identify missing events 493 /// Perform a negentropy sync diff (dry run) to identify missing events
482 /// 494 ///
483 /// This method performs NIP-77 negentropy reconciliation without downloading events. 495 /// This method performs NIP-77 negentropy reconciliation without downloading events.