Comments (5)
Nothing to forgive,
- Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to
base58
- cough typo *cough
- it's buffering up a single message, which we have to because the protocol-buffer parser we are using can only parse a complete message
- I like that spelling :)
from js-ipfs-bitswap.
Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to base58
Still, not hex
. Still you catched a bunch of these in your PR, but miss this one -> https://github.com/ipfs/js-ipfs-bitswap/pull/17/files#diff-e4c2bb9741805e47edd01ae04b0894b5R52
from js-ipfs-bitswap.
still, not hex. Still you catched a bunch of these in your PR, but miss this one
yes correct
from js-ipfs-bitswap.
Actually it is not, as far as I understand go-bitswap casts the key to a string on the conversion to protobuf, which results in a conversion to base58
I don't think this https://github.com/ipfs/go-ipfs/blob/master/exchange/bitswap/message/message.go#L156 calls https://github.com/ipfs/go-ipfs/blob/master/blocks/key/key.go#L16-L18 -- i think the keys are sent as straight up binary. calling string(buf)
only casts to string, does not call .String()
. cc @whyrusleeping
it's buffering up a single message, which we have to because the protocol-buffer parser we are using can only parse a complete message
ok so only one message? it releases the previous messages?
from js-ipfs-bitswap.
There is now a bit more documentation of Bitswap - https://github.com/ipfs/js-ipfs-bitswap#development
A lot came from this PR - #76 pointing it here for context
from js-ipfs-bitswap.
Related Issues (20)
- Browser tests fail on my machine HOT 1
- performance tests: define a baseline HOT 4
- It errors after latest release of Big.js HOT 3
- Add Lead Maintainer HOT 1
- What is the purpose of the promptedNetwork logic? HOT 1
- Non unique string CID keys HOT 1
- Use async/setImmediate instead of async/nextTick HOT 5
- I want to ask for some help. HOT 5
- Consistently encode string CIDs
- Please lock multicodec dependency to 0.5.6 HOT 1
- Improve resilience of findAndConnect HOT 1
- Remove dependency on `cid.prefix` property HOT 1
- We should fix all the @ts-ignore's introduced by #261 HOT 2
- Flaky test HOT 1
- Fix inconsistencies discovered in #261
- Flaky test HOT 1
- Retrieve blocks from a specific peer / Improved peer metrics HOT 9
- Bitswap Improvements Landed in js-ipfs? HOT 5
- The automated release is failing 🚨 HOT 1
- v12 not working - opens connection but then no data is received
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-ipfs-bitswap.