Commit f9d6dcc4 authored by Łukasz Magiera's avatar Łukasz Magiera Committed by Steven Allen

coreapi: block: don't allow creation of invalid cidv0s

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent f4e38c09
...@@ -19,7 +19,7 @@ type BlockRmOption func(*BlockRmSettings) error ...@@ -19,7 +19,7 @@ type BlockRmOption func(*BlockRmSettings) error
func BlockPutOptions(opts ...BlockPutOption) (*BlockPutSettings, error) { func BlockPutOptions(opts ...BlockPutOption) (*BlockPutSettings, error) {
options := &BlockPutSettings{ options := &BlockPutSettings{
Codec: "v0", Codec: "",
MhType: multihash.SHA2_256, MhType: multihash.SHA2_256,
MhLength: -1, MhLength: -1,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment