This website requires JavaScript.
Explore
Help
Sign In
codex-storage
/
nim-codex
mirror of
https://github.com/codex-storage/nim-codex.git
Watch
1
Star
0
Fork
You've already forked nim-codex
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
cbdf9be736
nim-codex
/
codex
/
proving.nim
5 lines
84 B
Nim
Raw
Normal View
History
Unescape
Escape
[marketplace] Simulate invalid proof submissions Closes #392. Create a simulated prover that sends an invalid proof (seq[byte] of length 0) every `N` proofs, where `N` is defined by a new cli param `--simulate-failed-proofs`.
2023-04-13 02:42:37 +00:00
import
.
/
proving
/
proving
import
.
/
proving
/
simulated
Proving (#66) * Add Proving object, which maintains contract id's to watch * [proving] invoke callback when proof is required # Conflicts: # dagger/por/timing/periods.nim # dagger/por/timing/prooftiming.nim * [proving] check proof requirements for all our contracts # Conflicts: # tests/dagger/helpers/mockprooftiming.nim * Update vendor/dagger-contracts * [proving] call onProofRequired() when proof is required soon * [proving] stop checking contracts that have ended * [proving] Remove duplicated funcs * [proving] Implement ProofTiming on top of smart contract * [proving] Fix race condition in waitUntilNextPeriod() Sometimes waitUntilNextPeriod would take a while to determine the current period, leading to unexpected results. Splits waitUntilNextPeriod() into getCurrentPeriod() and waitUntilPeriod(), to ensure that we're really waiting for the period that we think we're waiting for.
2022-04-08 21:58:16 +00:00
[marketplace] Simulate invalid proof submissions Closes #392. Create a simulated prover that sends an invalid proof (seq[byte] of length 0) every `N` proofs, where `N` is defined by a new cli param `--simulate-failed-proofs`.
2023-04-13 02:42:37 +00:00
export
proving
export
simulated