mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 21:07:45 +08:00
coreapi: block: don't allow creation of invalid cidv0s
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@f9d6dcc420 This commit was moved from ipfs/boxo@1c96fc32d2
This commit is contained in:
parent
7475c9a246
commit
9716a02efe
@ -19,7 +19,7 @@ type BlockRmOption func(*BlockRmSettings) error
|
||||
|
||||
func BlockPutOptions(opts ...BlockPutOption) (*BlockPutSettings, error) {
|
||||
options := &BlockPutSettings{
|
||||
Codec: "v0",
|
||||
Codec: "",
|
||||
MhType: multihash.SHA2_256,
|
||||
MhLength: -1,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user