Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

fix: block.put options #844

Merged
merged 4 commits into from
Sep 20, 2018
Merged

fix: block.put options #844

merged 4 commits into from
Sep 20, 2018

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Aug 30, 2018

Alternative to #793

Should fix this according to the spec.

fixes #815
closes #793
tested by ipfs-inactive/interface-js-ipfs-core#370 (released)

@ghost ghost assigned alanshaw Aug 30, 2018
@ghost ghost added the in progress label Aug 30, 2018
@alanshaw alanshaw changed the title [WIP] fix: block.put options fix: block.put options Sep 20, 2018
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
Alan Shaw added 3 commits September 20, 2018 14:44
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw
Copy link
Contributor Author

Please note that the code has a temporary workaround for ipfs/go-cid#75

}

const callback = once(_callback)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember but I wonder if this was a protection to go-ipfs sometimes sending multiple errors ?!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, I guess we'll find out soon ;)

@alanshaw alanshaw merged commit e290a38 into master Sep 20, 2018
@ghost ghost removed the in progress label Sep 20, 2018
@alanshaw alanshaw deleted the fix/block-put branch September 20, 2018 18:54
// Retry with "protobuf" format for go-ipfs
// TODO: remove when https://github.com/ipfs/go-cid/issues/75 resolved
if (qs.format === 'dag-pb') {
qs.format = 'protobuf'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key change for me that would have allowed me to complete #815. Still learned a lot from trying to work that story. Time to find a new issue to dig into. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

block.put ignores CID argument
3 participants