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