nim-codex/vendor
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
..
asynctest@a236a5f0f3 Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
codex-contracts-eth@6e66abbfcd feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
combparser@ba4464c005 adding submodules 2021-11-25 09:37:12 +01:00
dnsclient.nim@fbb76f8af8 Add DHT (#75) 2022-04-13 10:32:35 -06:00
lrucache.nim@8767ade0b7 Add DHT (#75) 2022-04-13 10:32:35 -06:00
nim-bearssl@f4c4233de4 bump bearssl to latest 2022-09-27 12:56:07 +10:00
nim-blscurve@48d8668c5a Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
nim-chronicles@7631f7b2ee track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-chronos@6525f4ce1d bumping chronos to latest master (#314) 2022-11-14 22:15:37 -06:00
nim-confutils@0435e67832 Minor cleanup and update deps (#42) 2022-01-12 16:19:37 -06:00
nim-contract-abi@61f8f59b39 Fix nimble requirements (#305) 2022-11-16 13:10:23 +01:00
nim-datastore@0cde8aeb67 Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
nim-eth@5885f638e4 Fix vendor/nim-eth (#246) 2022-09-12 21:30:16 -06:00
nim-ethers@5a4f786757 Validator (#387) 2023-04-19 15:06:00 +02:00
nim-faststreams@1b561a9e71 adding submodules 2021-11-25 09:37:12 +01:00
nim-http-utils@e88e231dfc track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-json-rpc@5a28176080 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nim-json-serialization@e5b18fb710 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-leopard@1a6f2ab725 Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
nim-libbacktrace@b29c22ba0e Bump libbacktrace and secp256k1 2022-06-28 11:04:18 +03:00
nim-libp2p@a3e9d1ed80 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-libp2p-dht@4375b92298 Repo limits (#319) 2022-12-02 18:00:55 -06:00
nim-metrics@743f81d4f6 adding submodules 2021-11-25 09:37:12 +01:00
nim-nat-traversal@27d314d65c Speed up development (#303) 2022-11-14 14:50:00 +01:00
nim-nitro@6b4c455bf4 Fix version conflict on nimble install 2022-05-19 09:36:47 +02:00
nim-presto@3984431dc0 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-secp256k1@5340cf1881 Bump libbacktrace and secp256k1 2022-06-28 11:04:18 +03:00
nim-serialization@493d18b829 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-sqlite3-abi@fda455cfea [build] add github.com/arnetheduck/nim-sqlite3-abi to vendor 2022-08-08 02:12:43 -05:00
nim-stew@0c379cf1d8 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-taskpools@b3673c7a7a Enable stylecheck (#353) 2023-03-10 08:02:54 +01:00
nim-toml-serialization@4e15e00ed9 Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-unittest2@02c49b8a99 Node setup (#32) 2022-01-10 09:32:56 -06:00
nim-websock@7b2ed397d6 track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
nim-zlib@74cdeb54b2 feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
nimbus-build-system@1cf6a1b18c Fix CI (#339) 2023-02-06 17:15:02 +01:00
nimcrypto@a5742a9a21 adding submodules 2021-11-25 09:37:12 +01:00
questionable@30e4184a99 feat: collateral per slot (#390) 2023-04-14 11:04:17 +02:00
stint@036c71d06a adding submodules 2021-11-25 09:37:12 +01:00
upraises@ff4f8108e4 adding submodules 2021-11-25 09:37:12 +01:00