adding codex merkle and coders tests
This commit is contained in:
parent
d032149924
commit
ff17551e32
|
@ -119,10 +119,10 @@ proc rootCid*(
|
||||||
if self.root.len == 0:
|
if self.root.len == 0:
|
||||||
return failure "Empty root"
|
return failure "Empty root"
|
||||||
|
|
||||||
Cid.init(
|
let
|
||||||
version,
|
mhash = ? MultiHash.init(self.mcodec, self.root).mapFailure
|
||||||
dataCodec,
|
|
||||||
? MultiHash.init(self.mcodec, self.root).mapFailure).mapFailure
|
Cid.init(version, DatasetRootCodec, mhash).mapFailure
|
||||||
|
|
||||||
func getLeafCid*(
|
func getLeafCid*(
|
||||||
self: CodexMerkleTree,
|
self: CodexMerkleTree,
|
||||||
|
|
Loading…
Reference in New Issue