hide —simulate-proof-failures behind compile flag

The `--simulate-proof-failures` cli param is now only available when codex is compile using the `-d:codex_enable_proof_failures` flag.
This commit is contained in:
Eric Mastro 2023-04-24 19:38:32 +10:00 committed by benbierens
parent 28896c29fe
commit 10f4433dbb
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 8 additions and 6 deletions

View File

@ -66,7 +66,7 @@ task testContracts, "Build & run Codex Contract tests":
test "testContracts"
task testIntegration, "Run integration tests":
codexTask()
buildBinary "codex", params = "-d:chronicles_runtime_filtering -d:chronicles_log_level=TRACE -d:codex_enable_proof_failures=true"
test "testIntegration"
task test, "Run tests":

View File

@ -37,6 +37,7 @@ export DefaultCacheSizeMiB, net, DefaultQuotaBytes, DefaultBlockTtl, DefaultBloc
const
codex_enable_api_debug_peers* {.booldefine.} = false
codex_enable_proof_failures* {.booldefine.} = false
type
StartUpCommand* {.pure.} = enum
@ -241,10 +242,11 @@ type
.}: int
simulateProofFailures* {.
desc: "Simulates proof failures once every N proofs. 0 = disabled."
defaultValue: 0
name: "simulate-proof-failures"
.}: uint
desc: "Simulates proof failures once every N proofs. 0 = disabled."
defaultValue: 0
name: "simulate-proof-failures"
hidden
.}: uint
of initNode:
discard