From dbc3994bb307f1993076386941fc918d5263818c Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Thu, 16 Nov 2023 17:05:36 +0100 Subject: [PATCH] testcase: fails on last 3D test with these params Signed-off-by: Csaba Kiraly --- codex/erasure/erasure.nim | 1 + codex/stores/repostore.nim | 1 + tests/codex/testerasure.nim | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/codex/erasure/erasure.nim b/codex/erasure/erasure.nim index 2803a9c8..3b82f9df 100644 --- a/codex/erasure/erasure.nim +++ b/codex/erasure/erasure.nim @@ -342,6 +342,7 @@ proc encodeData( without treeCid =? tree.rootCid, err: return failure(err) + trace "Storing proofs for", treeCid if err =? (await self.store.putAllProofs(tree)).errorOption: return failure(err) diff --git a/codex/stores/repostore.nim b/codex/stores/repostore.nim index 3343382e..3a8c0b06 100644 --- a/codex/stores/repostore.nim +++ b/codex/stores/repostore.nim @@ -110,6 +110,7 @@ method putBlockCidAndProof*( ## Put a block to the blockstore ## + trace "putBlockCidAndProof", treeCid, index, blockCid without key =? createBlockCidAndProofMetadataKey(treeCid, index), err: return failure(err) diff --git a/tests/codex/testerasure.nim b/tests/codex/testerasure.nim index 25a8cf35..f217deb8 100644 --- a/tests/codex/testerasure.nim +++ b/tests/codex/testerasure.nim @@ -16,8 +16,8 @@ import pkg/codex/utils import ./helpers asyncchecksuite "Erasure encode/decode": - const BlockSize = 1024'nb - const dataSetSize = BlockSize * 123 # weird geometry + const BlockSize = 64'nb + const dataSetSize = BlockSize * 20 # weird geometry var rng: Rng var chunker: Chunker