a1fred has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mandric has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mandric has joined #ipfs
gurmble has joined #ipfs
grumble has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
gurmble is now known as grumble
not-a-dog has quit [Ping timeout: 256 seconds]
not-a-dog has joined #ipfs
aniarya82 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
plexigras has quit [Ping timeout: 272 seconds]
friend has joined #ipfs
<friend>
Is there more to running a node than starting the ipfs daemon? I seem to be able to find ipfs items by going to myhostname:8080/ipfs/$hash is it truly that simple?
<AphelionZ>
friend: yes and no :) what are you trying to do?
<AphelionZ>
you're technically running a "gateway"
guideline_ has joined #ipfs
<friend>
Ah, okay. What services would I have to offer to make it a node (to potentially get some filecoins down the road ;)
BouncyKnightMike has quit [Quit: Leaving]
<AphelionZ>
make sure port 4001 is open and wait :) bitswap, and by proxy filecoin doesnt do much right now
<AphelionZ>
on your terminal what does "ipfs swarm peers | wc -l" give you?
<friend>
818
<AphelionZ>
pretty good :) now find content people want
<AphelionZ>
and host it
<friend>
Would the best way to do that be to find content I think people want and 'add' it to ipfs or is there some way to mirror?
<AphelionZ>
unfortunately thats not my use case so hopefully somebody else in the channel could help you. I'd read the bitswap section of the whitepaper to get an idea of how the want lists work
guideline has quit [Ping timeout: 256 seconds]
<friend>
Will do, thanks for your help AphelionZ
<AphelionZ>
np! i'll be around if you have more questions
<[itchyjunk]>
Is there statistics on what files are most popular or anything?
<AphelionZ>
you could probably write a simple script that loops through the wantlists of your peers
<AphelionZ>
and then try to get that content?
mandric has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<friend>
Hm. Do I put in a hash from $(ipfs swarm peers)? Either this person wants nothing or I'm doing it wrong. hehe. Nice find though!
silotis has joined #ipfs
<swedneck[m]>
i don't think anyone is using that stuff
<swedneck[m]>
not before filecoin is implemented
<AphelionZ>
yeah i'm writing a for loop to search all my peers just to mess around
<AphelionZ>
it's all anime, as far as the eye can see
<swedneck[m]>
what does bitswap/wantlist even do?
<friend>
is serving anime the pinnacle of performance for online filesystems?
<AphelionZ>
friend: absolutely
<friend>
swedneck[m]: as far as I can tell, you should be able to put the hash of a file you want onto your wantlist and have nodes serve it to you. It reminds me of a magnet link
<AphelionZ>
wantlist / havelist shows which hashes you want and have, respectively
<AphelionZ>
does calling "ipfs get" put something on your wantlist?
<swedneck[m]>
friend: how is that different to just doing `ipfs cat $hash`?
<swedneck[m]>
or `ipfs get $hash` for that matter
<AphelionZ>
and then bitswap is just the formula for how well-behaved of a peer you are
<friend>
You are raising some very interesting points. Maybe its function is for when a file can't be found immediately ? :s
<AphelionZ>
yeah so i just tested - ipfs get puts something on your wantlist
probono has quit [Remote host closed the connection]
probono has joined #ipfs
<swedneck[m]>
huh
<AphelionZ>
makes sense imo, just an extra, forward-compatible step for when bitswap / filecoin are more active
<swedneck[m]>
what does bitswap do then?
<darkdrgn2k[m]>
does IPFS ADD automatiaclly PIN the hash as well
<AphelionZ>
it keeps a ledger of what you've sent and received between peers
<AphelionZ>
darkdrgn2k[m]: no
<darkdrgn2k[m]>
or will ipfs repo gc remove them
<darkdrgn2k[m]>
so ipfs repo gc should remove all added pins then.
<AphelionZ>
darkdrgn2k[m]: yeah you need to explicitly pin, otherwise gc will gobble it up
<AphelionZ>
yes
<darkdrgn2k[m]>
perfect!
<swedneck[m]>
i was under the impression it did?
<AphelionZ>
i know it's lame to RTFM but the whitepaper does explain all this pretty well, especially w/r/t bitswap
<AphelionZ>
that being said i'll keep answering questions with what i know
<darkdrgn2k[m]>
no i thought it didnt,
<darkdrgn2k[m]>
but i was worried it may
<friend>
this is 2018 we can't read
<swedneck[m]>
uh oh
<swedneck[m]>
i've been just adding things to ipfs without pinning them
<swedneck[m]>
maybe this should be a tad more explicit
<AphelionZ>
friend: i know, i know. i had to force myself to sit down and read through it
<AphelionZ>
that will return the whole wantlist of your peers
<AphelionZ>
that returned 2115 hashes
<AphelionZ>
friend: wanna try that on yours?
<friend>
Hey I actually am getting some wants
<AphelionZ>
so you could theoretically run ipfs get on all those and i guess maybe you'd get lucky and get some high-value content?
<AphelionZ>
i wonder if there's a way to add stuff to your wantlist asynchronously and have your node just quietly download stuff to make it available, besides calling ipfs get
kpcyrd has joined #ipfs
<AphelionZ>
tthere's an "unwant" command..
<friend>
Right I just saw that. Do you know where the wantlist is saved?
<AphelionZ>
dunno, somewhere in IPFS_HOME or in memory, if i have to guess
<friend>
I couldn't find anything with find ~/.ipfs|grep want
<AphelionZ>
yeah it could be the daemon just managing it
<AphelionZ>
lemme try something
<AphelionZ>
yeah it seems to be in memory and only based on what ipfs get commands are running
<AphelionZ>
I ran ipfs get in one terminal, confirmed with ipfs wantlist, then restarted ipfs (which killed ipfs get) and then checked the wantlist again: empty
<friend>
So it's not really something you could add a hash to and download whenever, it's only what you /currently/ want
<AphelionZ>
you could spin up a bunch of background processes /shrug
<AphelionZ>
real talk: if this were me i'd write some sort of cron task to query the whitelist and spin up ipfs gets maybe 10-20 at a time and let them download or time out one by one until i got through the whole list or until i ran out of disk space
<AphelionZ>
lol
<AphelionZ>
and then maybe make sure i wasnt downloading anything illegal
<AphelionZ>
its a lot of work to MAYBE earn filecoin at some point in the future
<friend>
right lol but it's fun (and it's worth it)
<AphelionZ>
from there you could do analysis on which of your hashes were the most lucrative
<AphelionZ>
maybe get some pseudo-academic-type folks to do machine learning stuff with it