mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 20:45:38 +00:00
adding codex merkle and coders tests
This commit is contained in:
parent
a87c8cbfb8
commit
a52c5c3409
@ -119,10 +119,10 @@ proc rootCid*(
|
||||
if self.root.len == 0:
|
||||
return failure "Empty root"
|
||||
|
||||
Cid.init(
|
||||
version,
|
||||
dataCodec,
|
||||
? MultiHash.init(self.mcodec, self.root).mapFailure).mapFailure
|
||||
let
|
||||
mhash = ? MultiHash.init(self.mcodec, self.root).mapFailure
|
||||
|
||||
Cid.init(version, DatasetRootCodec, mhash).mapFailure
|
||||
|
||||
func getLeafCid*(
|
||||
self: CodexMerkleTree,
|
||||
|
Loading…
x
Reference in New Issue
Block a user