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).