When I run āipfs repo gcā, I see lots and lots of hashes listed. I have maybe three or four added items. What are all those hashes as a result of gc?
What command did you use to add items to your node?
To answer your question in general, the hashes listed as a result of ipfs repo gc
are hashes that were cached ā but not pinned ā on your node.
Probably the chunks of the items you added. When you add a file, we chunk it into smaller pieces (makes it easier to transfer it and allows one to download pieces of a file without needing the entire thing).
Thanks. I used ipfs add
As I understand it the add command automatically pins the added file. Isnāt that so? If so, then all files added were pinned.
I looked at some of the gcāed hashes in the web interface and they were from different countries.
I wasnāt sure of the default behavior when I wrote my post, but youāre right that the default is to pin the added hash.
Youāre right, they should be.
Interesting. Are you running a public gateway? Also, are you sure you havenāt downloaded anything through IPFS?
Afraid Iāve lost track. I may have downloaded the cat.jpg or done other things in the tutorials. However, I have run gc several times (just now again in fact) and I get a long list of hashesāsome of which I copy and paste into the DAG page of the webui, and I see one for instance under Objects:
This object has no links
Object data (3110 bytes)
It begins as follows:
{ātypeā:āLeafā,ādataā:[{āminā:1135680000,ādataā:[āUnited Statesā,āUSā, ā¦
If I scroll to the right is goes on and on.
For the record, I connect both at work and at home if that makes a difference.
Ah, thatās the data we use to generate that pretty globe on the webui. I believe those nodes are generated by https://github.com/ipfs/ipfs-geoip (which will run locally in the webui).