diff --git a/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/Config.scala b/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/Config.scala index b482ed100fd9..a85b05a78765 100644 --- a/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/Config.scala +++ b/ledger/participant-state/kvutils/app/src/main/scala/com/daml/ledger/participant/state/kvutils/app/Config.scala @@ -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()