Skip to content
Discussions/App Development/Configuring sandbox seeding in 2.5.0Forum ↗

Configuring sandbox seeding in 2.5.0

App Development2 posts317 views1 likesLast activity Jan 2023
LU
LucianoOP
Jan 2023

Going off these old threads

I start a sandbox with the option to use testing-weak: sandbox-options: - -C=canton.participants.sandbox.parameters.contract-id-seeding=testing-weak Yet I get this warning: WARN c.d.p.a.SeedService$ - Trying to gather entropy from the underlying operating system to initialized the contract ID seeding, but the entropy pool seems empty. WARN c.d.p.a.SeedService$ - In CI environments environment consider using the "testing-weak" mode, that may produce insecure contract IDs but does not block…

and

Under Daml SDK 1.x.x, I used this clause in the daml.yaml file to make daml start work without failing on waiting to gather entropy: sandbox-options: - --contract-id-seeding=testing-weak After upgrading to 2.1.0, I see the following error message in daml start: ... Created .daml/dist/arbo-ledger-0.0.1.dar Error: Unknown option --contract-id-seeding=testing-weak Canton v2.1.0 Usage: canton [daemon|run|generate] [options] <…

I’m trying to change the seeding on sandbox 2.5.0. When I run daml start --sandbox-option -C=canton.participants.sandbox.parameters.contract-id-seeding=testing-weak, I see

Waiting for canton sandbox to start.
2023-01-31 09:17:41,237 [main] ERROR c.d.canton.CantonCommunityApp$ - GENERIC_CONFIG_ERROR(8,0): Cannot convert configuration to a config of class com.digitalasset.canton.config.CantonCommunityConfig. Failures are:
  at 'canton.participants.sandbox.parameters.contract-id-seeding':
    - (hardcoded value) Unknown key.
 err-context:{location=CantonConfig.scala:1467} 

As you can see it doesn’t recognise that config item. I’ve tried values no, static-weak, strong, none of these appear to work. Any idea what’s wrong? Has this configuration item changed again after the 2.0 release?

MA
Mate_Varga
Jan 2023

Hi @Luciano,

Yes, the parameter placement has changed as part of an improvement.

This should work:
-C=canton.participants.sandbox.parameters.ledger-api-server-parameters.contract-id-seeding=testing-weak

Kind Regards,
Mate

← Back to Discussions