feat: relay list and profile metadata publishing (CEP-6)#79
Conversation
|
I noticed that Both In the TS SDK, The I think this needs a targeted-publish capability on |
fixed - added publish_to(&urls, builder) to RelayPoolTrait backed by nostr-sdk's send_event_builder_to(). both publish_relay_list() and publish_profile_metadata() now route through publish_to_discoverability_relays() which passes the merged relay set to publish_to(). removed all three #[allow(dead_code)] annotations. bootstrap_relay_urls now actually drives where kind 0 and kind 10002 events are sent. |
…ation via publish_to() on RelayPoolTrait
7ae8ef5 to
9ce91bc
Compare
Part of CEP-6 implementation. #76
Adds relay list (kind 10002) and profile metadata (kind 0) publishing, both called unconditionally on start with guards inside the methods.
New config fields:
Smart bootstrap detection: skips default bootstrap relays when all advertised URLs are local and no explicit bootstrap URLs were set. Explicit bootstrap_relay_urls are always used regardless.
14 new tests, 262 passing.