-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to cleanup ipfs dht findpeer QmBlah
for my own node?
#3561
Comments
They will expire on their own. How many addresses you see there? |
I see around 8-9 public IPv4 addresses. They seem to be causing delays in contents pinned only on this node. Also, I have the feeling that IPNS records that were published from this laptop are resolved slowly on other nodes. How long are they on the DHT before they expire? |
When all the nodes that have those peer infos will restart, we probably should have timeout on those. |
So without any incentive system internal to IPFS for storing DHT records indefinitely, I see that reproviding content / republishing names / resharing peer infos every day makes complete sense (https://github.com/libp2p/go-libp2p-kad-dht/blob/master/records.go#L22). I am still digging up the DHT code to find out where the stale addresses are reshared by the peers and will try to come up with a PR. |
The peer info is a bit different form what I know, not sure though. |
The address factory work that @lgierth was doing should help with this. |
The work that'll actually fix this is properly signed peer routing records. Right now anyone can publish addresses for any peer. Instead, only the actual node should be able to publish addresses for itself, and it should attach a TTL. I think that depends on IPRS? The address factory work ( |
This should actually be fixed now.
All together, this should mostly fix this issue (although signed peer routing records are still something we need). |
go-ipfs version: 0.4.5-dev-
Repo version: 4
System version: amd64/linux
Golang version: go1.7.3
Type:
Bug
Priority:
P2
Description:
I am using a laptop that moves between networks, so its public facing IPv4 address changes. Also, at least in Hungary, most of the ISPs ask extra money for static public IPv4 addresses, so even an always-on desktop is in a LAN that gets routed through different public IPv4 every day or week.
My IPFS node therefore gathered quite some addresses if you ask
ipfs dht findpeer QmBlah
oripfs id QmBlah
on another node (If you ask it on the same node, the first returns nothing after a loooong wait, the second returns the same data thatipfs id
would, which excludes public IP addresses).Is there a way to remove obsolete multiaddresses for a node from the DHT?
The text was updated successfully, but these errors were encountered: