Commit Graph
5 Commits
Author SHA1 Message Date
Sjors Provoost 504a7cb051 Track seen relays from successful OKs
Record successful relay OK acknowledgements in RelayPool.seen
so posts and manual broadcasts update relay provenance.

Failed OK responses remain ignored.

Changelog-Fixed: Update note relay counts after successful
post or broadcast relay acknowledgements.

Signed-off-by: Sjors Provoost <sjors@sprovoost.nl>
2026-05-26 11:27:47 +02:00
Sjors Provoost 8c5b514057 Fix RelayPool tests and re-add to target
Restore RelayPoolTests to damusTests after 9091cb1a removed it
from the Xcode test target unintentionally.

Update its add-relay checks for the current async RelayPool API.

Signed-off-by: Sjors Provoost <sjors@sprovoost.nl>
2026-05-26 11:07:07 +02:00
kernelkindandWilliam Casarin 34e32bc930 handle extra slashes for relay url
Closes: https://github.com/damus-io/damus/issues/1766

Signed-off-by: kernelkind <kernelkind@gmail.com>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-12-16 17:43:00 -08:00
William Casarin 9091cb1aae Revert "Reduce battery usage by using exp backoff on connections"
This is causing pretty bad fail to reconnect issues

This reverts commit 252a77fd97, reversing
changes made to a611a5d252.
2023-03-17 07:54:29 -06:00
Bryan Montz 6c63f8f22a add unit tests for RelayPool 2023-02-25 07:34:31 -06:00