Skip to content

keep a newer cached follow list over a relay's - #22

Merged
tinfoilhash merged 1 commit into
developmentfrom
keep-newer-stored-follow-list
Nov 12, 2026
Merged

tinfoilhash merged 1 commit into
developmentfrom
keep-newer-stored-follow-list

Conversation

@tinfoilhash

Copy link
Copy Markdown
Owner

once the cache was an hour old, verify ignored it completely, so whatever follow list a relay returned was used, even one older than the cached list. a relay serving an older list could roll trust back to include a key that's since been unfollowed.

this matches the web app's fix in tinfoilhash/hasheus#102: an outdated cache's follow list counts only once a relay returns a follow list, and wins if it's newer. if no relay returns one, it's still dropped, so withholding the list fails safe. publish still only uses a fresh cached profile.

made with claude code + tinfoil hash · session cac618d4-34cf-4f09-bff6-b4a25528953f

once the cache was an hour old, it was ignored, so whatever follow list
a relay returned was used, even one older than the cached list. a relay
serving an older list could roll trust back to include a key that's
since been unfollowed.

like the web page, an outdated cache's follow list now counts once a
relay returns any follow list, and wins if it's newer. if no relay
returns one, it's still dropped, so withholding fails safe.

> made with claude code + tinfoil hash · session `cac618d4-34cf-4f09-bff6-b4a25528953f`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tinfoilhash
tinfoilhash merged commit dcd3c33 into development Nov 12, 2026
1 check passed
@tinfoilhash
tinfoilhash deleted the keep-newer-stored-follow-list branch November 12, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant