Fabian on Nostr: I have several TODOs in my code to add relay hints, and every time I want to start to ...
I have several TODOs in my code to add relay hints, and every time I want to start to implement them I remind myself why I didn’t add them yet: I don’t know which relay hint to add.
For example when I receive most posts from "wss://filter.nostr.wine/npub1n0sturny6....?broadcast=true" I can't add that as a relay hint, its a relay for my account.
I received many posts from wss://relay.damus.io, but can't add that it was recently nuked so the posts might not be there anymore.
Querying all relays to see if the posts are still there would put unnecessary stress on the relays.
I can't just rebroadcast posts because some relays don't accept old posts.
How do other clients do it? Is there a good solution?
Published at
2024-01-03 17:44:51Event JSON
{
"id": "85f4642684a14171eb7918cd5c9d40cb78154affeabf4e3c47381af51414d2fc",
"pubkey": "9be0be0e64d38a29a9cec9a5c8ef5d873c2bfa5362a4b558da5ff69bc3cbb81e",
"created_at": 1704300291,
"kind": 1,
"tags": [
[
"e",
"154f440c656f0f54959f4fad6d267e2cf14bfb231ad3a4d173a14c1e2c0309cb",
"",
"root"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"client",
"Nostur",
"31990:9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33:1685868693432"
]
],
"content": "I have several TODOs in my code to add relay hints, and every time I want to start to implement them I remind myself why I didn’t add them yet: I don’t know which relay hint to add.\n\nFor example when I receive most posts from \"wss://filter.nostr.wine/npub1n0sturny6....?broadcast=true\" I can't add that as a relay hint, its a relay for my account.\n\nI received many posts from wss://relay.damus.io, but can't add that it was recently nuked so the posts might not be there anymore.\n\nQuerying all relays to see if the posts are still there would put unnecessary stress on the relays.\n\nI can't just rebroadcast posts because some relays don't accept old posts.\n\nHow do other clients do it? Is there a good solution?",
"sig": "cdc6da514555cdca60e1c5388a45a9d49d86244a53e689a51a7ae1bf876b6e2407c7800aabb031eef8987e050e862cdb7cc517eea6b6b9cd25c034f2afbca233"
}