nim-codex/tests
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
..
codex [marketplace] check randomly assigned slot index is not already filled 2023-05-08 10:38:58 +10:00
contracts feat: contract address management (#405) 2023-05-03 09:24:25 +02:00
fixtures Node setup (#32) 2022-01-10 09:32:56 -06:00
integration feat: contract address management (#405) 2023-05-03 09:24:25 +02:00
config.nims [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
ethertest.nim [tests] move ethertest module up one level 2022-05-19 10:38:19 +02:00
examples.nim Validator (#387) 2023-04-19 15:06:00 +02:00
logging.nim [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
testCodex.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testContracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testIntegration.nim Generate proofs when required (#383) 2023-03-27 15:47:25 +02:00