Enable-testing-commands for Sandbox and Canton Console
- WallaceKellyOP
When I start my sandbox like this…
daml start \ --sandbox-option -C=canton.features.enable-testing-commands=yes… and then open a Canton console like this…
daml canton-console… and then try to use a Canton testing command…
sandbox.ledger_api.acs.of_all()I get this response…
ERROR c.d.c.c.RemoteParticipantReference:participant=sandbox - The command is currently disabled. You need to enable it explicitly by setting `canton.features.enable-testing-commands = yes` in your Canton configuration file (`.conf`)Why is this not working?
- WallaceKelly 2
Because you must set the
enable-testing-commands=yeson the Canton instance hosting the Console.Use the following instead…
daml canton-console \ -C canton.features.enable-testing-commands=yes - gyorgybalazsi 2
You can also apply this config from within the running console:
@ com.digitalasset.canton.config.CantonFeatures.apply(enableTestingCommands = true) res1: CantonFeatures = CantonFeatures( enablePreviewCommands = false, enableTestingCommands = true, enableRepairCommands = false )