-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
Hey @heavyk, thank you for the PR! Bootstrap peers are one of the Discovery mechanisms of libp2p, currently implemented in https://github.com/libp2p/js-libp2p-railing, just not attached to the libp2p-builds. Would you like to do that? Note that the go-ipfs nodes running on bootstrap have version 0.4.3, which doesn't incorporate some spdy fixes that are presente in go-ipfs master, when 0.4.4 is released, you shouldn't have an issue :) (Also one of the reasons we are not enabling this by default) |
oh alright, I didn't know about the differences in the versions. I'd be more than happy to implement it using libp2p-railing ... I pushed another commit which implements it how I expected it to go, but I get this error:
is my implementation even correct to begin with? also, I'll be more than happy to help with other parts that need to be done. just point me in the right direction :D |
@heavyk you missed an 's' in the |
nope :) that doesn't work either... I instear get this error:
I did get it working though... look at the last commit. I had to
so then, I had to go here: https://github.com/ipfs/js-libp2p-ipfs/blob/master/src/index.js#L145 and change that line to: and now everything is all good. I'm not sure that's the right way though... |
I see what you're saying about the 's' though... that's an existing error in peer-book |
seems the peer-book code is incorrect. you were the last to touch that anyway: libp2p/js-peer-book@e58fa0c how shall this be fixed then? |
nvm, when I looked at first, I thought you wanted to access the array directly, the .replace exists: https://github.com/libp2p/js-peer-info/blob/master/src/index.js#L76 |
really, I'm not sure what I'm not sure what exactly is the desired functionality... though, I can do the work if you tell me how it is you want it. |
Thank you :) In order to make railing work, we need:
Let me know your questions as you go, and thanks for bearing with the lack of good docs. We have the intent of boosting all our documentation on these things in the next quarter, so that contributions and usage gets way easier. |
Hi @heavyk, we've added bootstrap through libp2p-railing with this PR #735 Thank you for taking a look at this, we had to refactor to match our libp2p interfaces. If you are looking for more things to work on, check other issues that are open for contribution here: https://waffle.io/ipfs/js-ipfs |
The opts parameter wasn't correctly passed in when calling ipfs.object.stat. This is the test that makes sure opts is being correctly passed to through the send function to the IPFS daemon. I've also removed the "base58" encoding that was being passed in for some tests as base58 isn't a valid option for encoding and would provide this error: Uncaught AssertionError: expected [Error: invalid encoding: base58] to not exist Co-Authored-By: Alan Shaw <alan.shaw@protocol.ai>
playing around with the code, I couldn't get it transferring ... however, if I dial them, everything is working perfectly.
not sure if this is exactly how you wanted it implemented though. feedback appreciated
cheers