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