Skip to content

dasormeter/dars-of-unusual-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

dars-of-unusual-size

Generating DARs of arbitrary size

./gendaml.sh <template-scale-factor> > daml/Iou.daml

where indicates number of times to repeat IOU templates

Rough approximation : each repetition is a multiplier on a 20MB dar size

Then run usual daml build daml build

The dar will be output to .daml/dist/...

You can then upload the generated dar to the ledger under test to verify it is processed as expected.

Note that for most ledgers you will need

  1. Increase the --max-inbound-message-size limit from the default of 4MB (a value of 80MB (80000000) will provide sufficient headroom)
  2. Ensure that the running participant server java process has at least 4gb of heap for memory by setting the JAVA_ARGS environment variable JAVA_ARGS=-Xmx4096m

In docker-compose this can be set as follows:

  service:
    image: <participant-server-image>
    environment:
      -  JAVA_ARGS=-Xmx4096m

About

Generating DARs of arbitrary size

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages