nim-codex/tests/codex
Dmitriy Ryajov 72da534856
Wire sampler (#676)
* Setting up testfixture for proof datasampler

* Sets up calculating number of cells in a slot

* Sets up tests for bitwise modulo

* Implements cell index collection

* setting up slot blocks module

* Implements getting treeCID from slot

* implements getting slot blocks by index

* Implements out-of-range check for slot index

* cleanup

* Sets up getting sample from block

* Implements selecting a cell sample from a block

* Implements building a minitree for block cells

* Adds method to get dataset block index from slot block index

* It's running

* splits up indexing

* almost there

* Fixes test. Implementation is now functional

* Refactoring to object-oriented

* Cleanup

* Lining up output type with updated reference code.

* setting up

* Updates expected samples

* Updates proof checking test to match new format

* move builder to own dir

* move sampler to own dir

* fix paths

* various changes to add support for the sampler

* wip sampler implementation

* don't use upraises

* wip sampler integration

* misc

* move tests around

* Various fixes to select correct slot and block index

* removing old tests

* cleanup

* misc

fix tests that work with correct cell indices

* remove unused file

* fixup logging

* add logscope

* truncate entropy to 31 bytes, otherwise it might be > than mod

* forwar getCidAndProof to local store

* misc

* Adds missing test for initial-proving state

* reverting back to correct slot/block indexing

* fix tests for revert

* misc

* misc

---------

Co-authored-by: benbierens <thatbenbierens@gmail.com>
2024-01-17 11:24:34 -08:00
..
blockexchange Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
helpers chore: improve log information (#656) 2023-12-19 04:29:18 +00:00
merkletree Build slots (#668) 2024-01-11 08:45:23 -08:00
node Wire sampler (#676) 2024-01-17 11:24:34 -08:00
sales Wire sampler (#676) 2024-01-17 11:24:34 -08:00
slots Wire sampler (#676) 2024-01-17 11:24:34 -08:00
stores Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
utils Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
examples.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
helpers.nim Integrate slot builder (#666) 2024-01-08 14:52:46 -08:00
testasyncheapqueue.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testasyncstreamwrapper.nim Tests for AsyncStreamWrapper (#463) 2023-06-30 14:18:58 +02:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
testindexingstrategy.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testmanifest.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
testmerkletree.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
testnode.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testpurchasing.nim feat: partial payouts for cancelled requests (#561) 2023-10-24 10:12:54 +00:00
testsales.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
testslots.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
teststores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
teststorestream.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
testsystemclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testutils.nim Improve integration testing client (CodexClient) and json serialization (#514) 2023-09-01 15:44:41 +10:00
testvalidation.nim Fix slot queue push (#542) 2023-09-04 16:42:09 +02:00