-
Notifications
You must be signed in to change notification settings - Fork 163
Support for /block endpoints #90
Comments
The whole example request as made by the conformance tests:
And the same interaction through
It's nice that the js http client sends the |
wantlist depends on get, rm depends on dag + pin. |
pin depends on add which depends on a bunch of other stuff I assume, dag tests use add also |
dvc94ch could you explain the above a bit?
Aah, I see the comma now. I spent a lot of time thinking how could wantlist depend on rm + dag + pin.
I think the pinning under the hood is good enough at the moment with #117. Even if an API is used we don't need to implement it to the fullest by the tests right now. I drew a confusing graphviz on the dependencies I gathered. It will not make anyone any wiser, but in addition to some details I missed I don't think I found anything conflicting. Still wondering if that |
From the http request examples it would seem like the javascript version is ok but the Strange that the docs put the file as named |
With For value of
Can't find another accepted value for the parameter:
|
#131 leaves the following tests failing:
|
What is involved in transliterating CIDv0 <---> CIDv1? Is that the right term, transliterating? Also what do you mean by "doesn't do anything?" it looks like it kinda does something here https://github.com/ipfs/js-ipfs/blob/master/packages/interface-ipfs-core/src/block/stat.js#L28 |
Yeah the "doesn't do anything" was badly written. I was just wondering what was I meaning. It was that there is only boilerplate in place: https://github.com/ipfs-rust/rust-ipfs/blob/master/http/src/v0/block.rs#L137-L144 and this isn't even routed yet. Same as
I was thinking if this should be "always use cidv1 internally" but there are probably some pitfalls I didn't yet check from the other impls. |
|
References:
/block/put
/block/rm
#Response
/block/get
plain/text
response/block/stat
Print information of a raw IPFS block.
block.put
The text was updated successfully, but these errors were encountered: