Closed austinfrey closed 5 years ago
i think the issue is here: https://github.com/ssbc/ssb-blobs/blob/master/inject.js#L47
this wrap
function is used to wrap blobs.add here: https://github.com/ssbc/ssb-blobs/blob/master/inject.js#L296
it looks like the cb
would never make it to the front of the line in the event an id is never passed in.
I think there is a broken test in
test/secret-stack.js
. this test, https://github.com/ssbc/ssb-blobs/blob/master/test/secret-stack.js#L45, passes because both values areundefined
at this point in the test. you can see this when adding a log statement like i've done below. the other issue i'm seeing is that while theblob
does indeed get written, the callback is never called with the returned hash value. i added a anothert.ok()
in the callback below and this never get's called.