diff options
Diffstat (limited to 'src/nostr.h')
| -rw-r--r-- | src/nostr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nostr.h b/src/nostr.h index b5eb5e3..827b2f3 100644 --- a/src/nostr.h +++ b/src/nostr.h | |||
| @@ -43,6 +43,14 @@ void BtfSetActiveRelay(const std::string& relay); | |||
| 43 | // If set (via /announcerelay=host:port), this node announces that relay on | 43 | // If set (via /announcerelay=host:port), this node announces that relay on |
| 44 | // Nostr so other nodes discover it automatically -- no manual seed-list edit. | 44 | // Nostr so other nodes discover it automatically -- no manual seed-list edit. |
| 45 | extern std::string strBtfAnnounceRelay; | 45 | extern std::string strBtfAnnounceRelay; |
| 46 | // True when /rvrelay pinned the meeting relay list: BtfAllRelays then returns | ||
| 47 | // ONLY vBtfMeetingRelays, never Nostr-discovered volunteer relays. Without | ||
| 48 | // this, a pool that pins one public relay still spawns an accept thread per | ||
| 49 | // discovered relay, and each thread's optimistic BtfSetActiveRelay makes the | ||
| 50 | // published descriptor flap to relays the pool may not be reachable at. | ||
| 51 | extern bool fBtfRelayPinned; | ||
| 52 | // Basic sanity check on a "host:port" relay address (numeric port 1..65535). | ||
| 53 | bool LooksLikeRelay(const std::string& r); | ||
| 46 | // Every relay to try: curated seeds + relays discovered from Nostr announcements. | 54 | // Every relay to try: curated seeds + relays discovered from Nostr announcements. |
| 47 | std::vector<std::string> BtfAllRelays(); | 55 | std::vector<std::string> BtfAllRelays(); |
| 48 | 56 | ||