nim-codex/codex
markspanbroek d56eb6aee1
Validator (#387)
* [contracts] Add SlotFreed event

* [integration] allow test node to be stopped twice

* [cli] add --validator option

* [contracts] remove dead code

* [contracts] instantiate OnChainMarket and OnChainClock only once

* [contracts] add Validation

* [sales] remove duplicate import

* [market] add missing import

* [market] subscribe to all SlotFilled events

* [market] add freeSlot()

* [sales] fix warnings

* [market] subscribe to SlotFreed events

* [contracts] fix warning

* [validator] keep track of filled slots

* [validation] remove slots that have ended

* [proving] absorb Proofs into Market

Both Proofs and Market are abstractions around
the Marketplace contract, having them separately
is more trouble than it's worth at the moment.

* [market] add markProofAsMissing()

* [clock] speed up waiting for clock in tests

* [validator] mark proofs as missing

* [timer] fix error on node shutdown

* [cli] handle --persistence and --validator separately

* [market] allow retrieval of proof timeout value

* [validator] do not subscribe to SlotFreed events

Freed slots are already handled in
removeSlotsThatHaveEnded(), and onSlotsFreed()
interfered with its iterator.

* [validator] Start validation at the start of a new period

To decrease the likelihood that we hit the validation timeout.

* [validator] do not mark proofs as missing after timeout

* [market] check whether proof can be marked as missing

* [validator] simplify validation

Simulate a transaction to mark proof as missing, instead
of trying to keep track of all the conditions that may
lead to a proof being marked as missing.

* [build] use nim-ethers PR #40

Uses "pending" blocktag instead of "latest" blocktag
for better simulation of transactions before sending
them.

https://github.com/status-im/nim-ethers/pull/40

* [integration] integration test for validator

* [validator] monitor a maximum number of slots

Adds cli parameter --validator-max-slots.

* [market] fix missing collateral argument

After rebasing, add the new argument to fillSlot calls.

* [build] update to nim-ethers 0.2.5

* [validator] use Set instead of Table to keep track of slots

* [validator] add logging

* [validator] add test for slot failure

* [market] use "pending" blocktag to use more up to date block time

* [contracts] remove unused import

* [validator] fix: wait until after period ends

The smart contract checks that 'end < block.timestamp',
so we need to wait until the block timestamp is greater
than the period end.
2023-04-19 15:06:00 +02:00
..
blockexchange Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
contracts Validator (#387) 2023-04-19 15:06:00 +02:00
erasure Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
manifest Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
node [marketplace] Add Reservations Module (#340) 2023-04-04 17:05:16 +10:00
purchasing feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
rest feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
sales feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
storageproofs Validator (#387) 2023-04-19 15:06:00 +02:00
stores adding some clarification comments (#391) 2023-04-10 14:45:10 -06:00
streams Block download (#304) 2022-11-15 09:46:21 -06:00
utils Validator (#387) 2023-04-19 15:06:00 +02:00
blockexchange.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
blocktype.nim Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
chunker.nim Block download (#304) 2022-11-15 09:46:21 -06:00
clock.nim Validator (#387) 2023-04-19 15:06:00 +02:00
codex.nim Validator (#387) 2023-04-19 15:06:00 +02:00
conf.nim Validator (#387) 2023-04-19 15:06:00 +02:00
contracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
discovery.nim Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
erasure.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
errors.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
formats.nim Remove protobuf serialization (#289) 2022-10-27 07:41:34 -06:00
manifest.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
market.nim Validator (#387) 2023-04-19 15:06:00 +02:00
namespaces.nim Repo limits (#319) 2022-12-02 18:00:55 -06:00
node.nim Validator (#387) 2023-04-19 15:06:00 +02:00
periods.nim Validator (#387) 2023-04-19 15:06:00 +02:00
proving.nim Validator (#387) 2023-04-19 15:06:00 +02:00
purchasing.nim Load purchase state from chain (#283) 2022-11-08 08:10:17 +01:00
rng.nim track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
sales.nim Validator (#387) 2023-04-19 15:06:00 +02:00
storageproofs.nim Validator (#387) 2023-04-19 15:06:00 +02:00
stores.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
streams.nim adding AsyncStreamWrapper (#110) 2022-06-14 09:19:35 -06:00
systemclock.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
utils.nim Download files without padding (#218) 2022-08-24 15:15:59 +03:00
validation.nim Validator (#387) 2023-04-19 15:06:00 +02:00