adding codex merkle and coders tests

This commit is contained in:
Dmitriy Ryajov 2023-12-14 14:52:18 -06:00
parent d032149924
commit ff17551e32
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 4 additions and 4 deletions

View File

@ -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,