-
elsehow has quit
-
elsehow joined the channel
-
gmaclennan joined the channel
-
gmaclennan joined the channel
-
gmaclennan has quit
-
gmaclennan joined the channel
-
pfraze joined the channel
-
mchelen joined the channel
-
gmaclennan joined the channel
-
gmaclennan has quit
-
pfraze_ joined the channel
-
pfraze joined the channel
-
dat-gitter-bot1 joined the channel
-
dat-gitter-bot has quit
-
dat-gitter-bot joined the channel
-
dat-gitter-bot1 has quit
-
mhilmi_ joined the channel
-
pfraze joined the channel
-
pfraze has quit
-
pfraze joined the channel
-
xAt is now known as xat-_
-
thomasreggi joined the channel
-
freeman-lab has quit
-
freeman-lab joined the channel
-
xat-_ is now known as xAt
-
ivan joined the channel
-
jeroen___ joined the channel
-
jeroen___
hi
-
parshap joined the channel
-
pdurbin has quit
-
pdurbin joined the channel
-
bret joined the channel
-
xAt is now known as xat-_
-
mandric joined the channel
-
xat-_ is now known as xAt
-
floppy joined the channel
-
jeroen___ has quit
-
mandric has quit
-
floppy has left the channel
-
xAt is now known as xat-_
-
kumavis joined the channel
-
xat-_ is now known as xAt
-
pfraze joined the channel
-
mandric joined the channel
-
mikolalysenko joined the channel
-
serapath has quit
-
serapath joined the channel
-
sballesteros_ joined the channel
-
mafintosh joined the channel
-
mandric has quit
-
ogd waves
-
gmaclennan joined the channel
-
ogd
-
mafintosh
ogd: yes or you can do feed.ready(cb) instead if you don't care which one is fetched first
-
ogd
mafintosh: ahh ok
-
mafintosh: biggest blocker we ran into was lack of multi process access to the ~/.dat/db
-
mafintosh: because we wanted to store the dat in the home dir
-
mafintosh: and im not even sure anymore what the best approach there is cuase we've redone it so many times
-
mafintosh: for now im just doing local dats again so each process is in a diff folder and has its own db
-
mafintosh
ogd: thats fine for now
-
ogd: its a lot easier this time since there isn't any locks
-
ogd: implemented in js
-
ogd
mafintosh: ah yea
-
-
mafintosh
ogd: oh okay
-
ogd: i spun up a hyperdrive on DO earlier (its still running) and booted up another on a coffee shop wifi and they started replicating a csv file :)
-
ogd
mafintosh: haha nice
-
mafintosh
ogd: using the dht as discovery
-
ogd
mafintosh: if you're only advertising one file it works
-
mafintosh: but if you have multiple things to announce it causes that error on startup
-
mafintosh
ogd: ah i see
-
ogd
mafintosh: basically if dht.announce gets called multiple times it throws. it should just use thinky
-
thunky
-
gmaclennan joined the channel
-
mafintosh
ogd: but after the dht is ready its fine right?
-
ogd
mafintosh: yea
-
wa7son has quit
-
mimming has quit
-
mimming joined the channel
-
wa7son joined the channel
-
mafintosh: ok try dat 1.0 branch
-
mafintosh: in one folder with some non-hidden files in it do `dat share`, then in another folder do `dat <hash>`
-
mafintosh: oh actually my push is still uploading cause my internets slow
-
mafintosh
ogd: not home?
-
ogd
mafintosh: ok its on 1.0 branch now
-
mafintosh: at coffee shop
-
dat-git-bot
-
dat/1.0 4089036 Max Ogden: use hyperdrive 1.1.0
-
ogd
mafintosh: if you are only sharing 1 file you can turn on dht in cli.js and send me the link
-
mafintosh: oh actually its line 27 of index.js
-
mafintosh: bah sorry line 30
-
mafintosh
ogd: it could just announce the top hash
-
ogd: and none of the files - it would still work
-
ogd
mafintosh: actually i think thats what im doing... so maybe im misundersatnding the bug
-
mafintosh: oh actually i think what is happening is internally bittorrent-dht calls .announce on itself
-
mafintosh: and then if you call .announce on it before it finishes it throws
-
mafintosh: or something like that
-
mafintosh
ah
-
ogd
mafintosh: lemme just do my own deferred thing in discovery-channel
-
dat-gitter-bot1 joined the channel
-
mafintosh
ogd: hey worked locally!
-
ogd
mafintosh: woot
-
mafintosh
good job everyone :)
-
ogd
-
mafintosh
ogd: your code has a small bug where its writing the file random access index as part of the file
-
ogd
mafintosh: and using that function in both .lookup and .announce
-
mafintosh
ogd: but don't worry about that for now
-
ogd
mafintosh: oh
-
mafintosh
ogd: i haven't hit that exception you're talking about in my examples
-
ogd
mafintosh: lemme reproduce it again locally and make sure im not doing something dumb
-
mafintosh: to reproduce, set this.discovery = discoveryChannel({dht: true})
-
mafintosh: and then do 'dat share' and it should crash
-
mafintosh
ok
-
ogd: how fast should it crash?
-
ogd
mafintosh: couple seconds
-
dat-gitter-bot has quit
-
mafintosh
ogd: i get this err, Error: invalid node id / info hash length
-
ogd
mafintosh: you sure you did 'dat share'?
-
mafintosh: if you do anything else besdies 'share' it treats it as a hash
-
mafintosh
ogd: yes
-
ogd
mafintosh: that error sounds like its trying to download an invalid hash
-
mafintosh
-
ogd
mafintosh: try with multiple files
-
mafintosh: im just curious
-
mafintosh
ogd: now i get it consistently with one file
-
ogd: your bug
-
ogd: i cannot reproduce my id/hash bug
-
ogd
mafintosh: lol
-
mafintosh: i usually nuke the .dat folder between runs
-
mafintosh
ogd: ok
-
ogd: same
-
ogd: i get Error: dht is already listening
-
ogd
mafintosh: my error?
-
mafintosh: yea
-
mafintosh: so i think whats happening maybe is bittorrent-dht is calling .listen internally somewhere
-
mafintosh: then when i call .listen it causes that
-
mafintosh: yea thats what it is
-
mafintosh
ogd: nice
-
ogd
mafintosh: i guess creating a bittorrent-dht instance makes it call .listen automatically
-
mafintosh
ogd: yea i guess so
-
ogd
mafintosh: ok fixed first bug, now getting the invalid node id bug
-
mafintosh: thats cause bittorrent dht converts the hash string you pass in to hex
-
mafintosh
ogd: can you reproduce?
-
ogd
id = idToBuffer(id)
-
var idHex = idToHexString(id)
-
mafintosh
ogd: just dead with buffers
-
*deal
-
lol
-
ogd
mafintosh: ok fixed it, pushing
-
mafintosh
ogd: i almost have hyperdrive writing to files working now