Skip to content

Commit

Permalink
Restore removed CLI check
Browse files Browse the repository at this point in the history
  • Loading branch information
rautenrieth-da committed Oct 18, 2021
1 parent 532e3fa commit 3c49db0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,14 @@ object Config {
)
.action((_, config) => config.copy(enableInMemoryFanOutForLedgerApi = true))

checkConfig(config =>
if (config.enableInMemoryFanOutForLedgerApi && !config.enableMutableContractStateCache)
failure(
"buffered-ledger-api-streams-unsafe must be enabled in conjunction with mutable-contract-state-cache."
)
else success
)

opt[Unit]("use-self-service-error-codes")
.optional()
.hidden()
Expand Down

0 comments on commit 3c49db0

Please sign in to comment.