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" test "testContracts"
task testIntegration, "Run integration tests": 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" test "testIntegration"
task test, "Run tests": task test, "Run tests":

View File

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