nim-codex/tests/codex
Eric Mastro 92dc770fa2
[marketplace] check randomly assigned slot index is not already filled
When a storage request is handled by the sales module, a slot index was randomly assigned and then the slot was filled.

Now, the random slot index is checked that its state is `SlotState.Free` before continuing with the download process.

An additional sales agent state was added, preparing, that handles this step of assigning a random slot index. All state machine setup, such as retrieving the request and subscribing to events that were previously in the `SaleDownloading` state have been moved to `SalePreparing`. If all indices of the request have been filled, the state is changed to `SaleIgnored`.

# Conflicts:
#	codex/sales.nim
#	codex/sales/states/downloading.nim
#	codex/sales/states/filling.nim
#	tests/contracts/testInteractions.nim
2023-05-08 10:38:58 +10:00
..
blockexchange Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
helpers Validator (#387) 2023-04-19 15:06:00 +02:00
sales [marketplace] check randomly assigned slot index is not already filled 2023-05-08 10:38:58 +10:00
storageproofs Fix warnings (drops Nim 1.2) (#348) 2023-03-09 12:23:45 +01:00
stores fix: repostore started flag in stop() (#374) 2023-03-16 09:00:36 -06:00
utils [marketplace] Add Reservations Module (#340) 2023-04-04 17:05:16 +10:00
examples.nim feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
helpers.nim Fix warnings (drops Nim 1.2) (#348) 2023-03-09 12:23:45 +01:00
testasyncheapqueue.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim Download files without padding (#218) 2022-08-24 15:15:59 +03:00
testclock.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
testerasure.nim Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
testmanifest.nim Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
testnode.nim Fix warnings (drops Nim 1.2) (#348) 2023-03-09 12:23:45 +01:00
testproving.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testpurchasing.nim Fix warnings (drops Nim 1.2) (#348) 2023-03-09 12:23:45 +01:00
testsales.nim [marketplace] Add Reservations Module (#340) 2023-04-04 17:05:16 +10:00
teststorageproofs.nim Upload authenticators (#108) 2022-05-25 20:29:31 -06:00
teststores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
teststorestream.nim Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
testsystemclock.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
testutils.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
testvalidation.nim [validator] fix intermittent test failure (#402) 2023-05-01 17:22:13 +02:00