mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
rebase main
This commit is contained in:
parent
e8d2622bc2
commit
bced019c1f
@ -47,10 +47,10 @@ suite "Manifest":
|
||||
)
|
||||
|
||||
var
|
||||
manifest = BlocksManifest.init(blocks).tryGet()
|
||||
blocksManifest = BlocksManifest.init(blocks).tryGet()
|
||||
|
||||
let
|
||||
e = manifest.encode().tryGet()
|
||||
(cid, decoded) = BlocksManifest.decode(e).tryGet()
|
||||
e = blocksManifest.encode().tryGet()
|
||||
manifest = Manifest.decode(e).tryGet()
|
||||
|
||||
check manifest.blocks == blocks
|
||||
|
||||
@ -75,7 +75,7 @@ suite "Test Node":
|
||||
|
||||
var
|
||||
manifestBlock = (await localStore.getBlock(manifestCid)).tryGet()
|
||||
localManifest = BlocksManifest.init(manifestBlock).tryGet()
|
||||
localManifest = BlocksManifest.init(manifestBlock.data).tryGet()
|
||||
|
||||
check:
|
||||
manifest.len == localManifest.len
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user