Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct the blocksize calculation for link blocks #1200

Merged
merged 1 commit into from
May 6, 2015
Merged

Conversation

whyrusleeping
Copy link
Member

This has been wrong for a while, and ive known about it for a while, but i finally decided to fix it.

@whyrusleeping whyrusleeping added the status/in-progress In progress label May 6, 2015
@jbenet
Copy link
Member

jbenet commented May 6, 2015

Oh it's in bytes!

and the tests need fixing (chunking changed)

@whyrusleeping
Copy link
Member Author

thats weird... the hash for the 5MB random file changed... which doesnt make sense.

@jbenet
Copy link
Member

jbenet commented May 6, 2015

why not? maybe it was chunked to multiple indirect blocks and not to less.

@whyrusleeping
Copy link
Member Author

5MB/256k = 20

8K/(258+3 + 5) = 30

@whyrusleeping
Copy link
Member Author

Ah, okay, its the 100MB test thats failing. makes a lot more sense

@jbenet
Copy link
Member

jbenet commented May 6, 2015

Aw man, i just found the perfect gif:

i guess it still works.

@whyrusleeping
Copy link
Member Author

the day when your gifs are hosted in ipfs will be a good one

jbenet added a commit that referenced this pull request May 6, 2015
correct the blocksize calculation for link blocks
@jbenet jbenet merged commit 2d47c7f into master May 6, 2015
@jbenet jbenet removed the status/in-progress In progress label May 6, 2015
@jbenet jbenet deleted the fix/blocksize-calc branch May 6, 2015 08:34
@jbenet jbenet mentioned this pull request May 9, 2015
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants