tane/packages/commons_core/test/social
vjrj 2a6b4b0947 feat(block2): relay pool — publish to many relays, discover deduped, tolerate failures
Relay-strategy hardening (network-trust §3): don't hang on one relay.
- NostrChannel interface: what the transports need (sign, publish, subscribe,
  reqOnce). Implemented by NostrConnection (single relay) and the new RelayPool.
- RelayPool: connects to all configured relays (skips unreachable ones, throws
  only when none are reachable), publishes to every live relay (accepted if any
  accepts), merges discovery deduped by event id, and survives a relay dropping.
- Transports now depend on NostrChannel, not a concrete connection.
- SocialService.openSession takes ALL configured relays (was relays.first);
  createOffersCubit passes the whole list.

commons_core 63 tests green (3 new pool tests over two in-process relays);
app_seeds social/market 18 green.
2026-07-10 10:35:39 +02:00
..
geohash_test.dart feat(block2): geohash encoder in commons_core (for 'use my location') 2026-07-10 03:18:30 +02:00
nostr_transports_test.dart feat(block2): Nostr transport backend in commons_core (all 3 contracts) 2026-07-10 02:38:50 +02:00
relay_pool_test.dart feat(block2): relay pool — publish to many relays, discover deduped, tolerate failures 2026-07-10 10:35:39 +02:00
web_of_trust_test.dart feat(block2): commons_core social foundation — derivation, types, interfaces, WoT 2026-07-10 02:31:02 +02:00