oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.72k stars 220 forks source link

Expunge RCs from clients #1463

Open jagerman opened 3 years ago

jagerman commented 3 years ago

Clients can potentially hang onto an RC for a long time, which may no longer be valid, but the client currently has no way to learn about that expiry. This causes problems for hops=1 mode because you might end up choosing the RC of an expired node.

Related to this: if a lokinet relay is not currently active, it should either let clients know this or else just drop all connections so that the client doesn't use them.

majestrate commented 3 years ago

if i recall we would run out of RCs and need to rebootstrap as a client if we turned off our client for a long period of time.