mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-17 23:36:33 +00:00
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:
parent
f58e945611
commit
36480b1c45
@ -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":
|
||||||
|
@ -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
|
||||||
@ -239,12 +240,13 @@ type
|
|||||||
defaultValue: 1000
|
defaultValue: 1000
|
||||||
name: "validator-max-slots"
|
name: "validator-max-slots"
|
||||||
.}: int
|
.}: int
|
||||||
|
|
||||||
simulateProofFailures* {.
|
simulateProofFailures* {.
|
||||||
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"
|
||||||
.}: uint
|
hidden
|
||||||
|
.}: uint
|
||||||
|
|
||||||
of initNode:
|
of initNode:
|
||||||
discard
|
discard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user