-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
merkledag: retain cid types when roundtripping through a ProtoNode #3443
Conversation
License: MIT Signed-off-by: Jeromy <[email protected]>
d8cb60d
to
cd6d2d2
Compare
License: MIT Signed-off-by: Jeromy <[email protected]>
79e87eb
to
13f6528
Compare
@mib-kd743naq wanna verify that this solves the problems youre seeing in #3427 #3431 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for one thing I am not 100% sure about. See comment.
|
||
var defaultCidPrefix = cid.Prefix{ | ||
Codec: cid.DagProtobuf, | ||
MhLength: -1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this really be -1? Does it get set somewhere else. Just double checking, so if you know this is correct than don't worry about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 implies "use default length".
Should address #3431
License: MIT
Signed-off-by: Jeromy [email protected]