From d26e92170a74a40b847680615a3a7622670b9383 Mon Sep 17 00:00:00 2001 From: Tomasz Bekas Date: Wed, 26 Jun 2024 15:09:13 +0200 Subject: [PATCH] Fix verifiable manifest initialization --- codex/manifest/manifest.nim | 2 +- tests/codex/testerasure.nim | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/codex/manifest/manifest.nim b/codex/manifest/manifest.nim index abfd5b4c..5966feb3 100644 --- a/codex/manifest/manifest.nim +++ b/codex/manifest/manifest.nim @@ -322,7 +322,7 @@ func new*( protected: true, ecK: manifest.ecK, ecM: manifest.ecM, - originalTreeCid: manifest.treeCid, + originalTreeCid: manifest.originalTreeCid, originalDatasetSize: manifest.originalDatasetSize, protectedStrategy: manifest.protectedStrategy, verifiable: true, diff --git a/tests/codex/testerasure.nim b/tests/codex/testerasure.nim index 180a8487..84f4b1c3 100644 --- a/tests/codex/testerasure.nim +++ b/tests/codex/testerasure.nim @@ -234,7 +234,7 @@ suite "Erasure encode/decode": discard (await erasure.decode(encoded)).tryGet() - test "Verifiable manifest": + test "Should handle verifiable manifests": const buffers = 20 parity = 10 @@ -244,15 +244,11 @@ suite "Erasure encode/decode": slotCids = collect(newSeq): for i in 0..