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

feat: upgrade to latest dag-pb API #88

Merged
merged 4 commits into from
Nov 24, 2016
Merged

feat: upgrade to latest dag-pb API #88

merged 4 commits into from
Nov 24, 2016

Conversation

daviddias
Copy link
Contributor

Updated the module to use dag-pb, however I introduced a bug where I always loose 34 bytes for files bigger than the chunk size. I'm currently debugging.

n.size((err, size) => {
series([
(cb) => {
DAGNode.create(f.marshal(), (err, node) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is here where I'm failing, I'm passing the f.marshal() before I do the addBlockSize

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, this was one bit, now only missing 10 bytes

(cb) => node.multihash(cb),
(cb) => node.size(cb)
], (err, res) => {
let n
Copy link
Contributor

Choose a reason for hiding this comment

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

can we please not use one letter variables if possible? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@daviddias daviddias merged commit 51d1245 into master Nov 24, 2016
@daviddias daviddias deleted the feat/awesome-dag-pb branch November 24, 2016 15:03
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.

2 participants