Consensys / quorum-genesis-tool

The quorum genesis tool creates genesis configs, configuration files, and keys for Hyperledger Besu, GoQuorum and Tessera.
Apache License 2.0
20 stars 18 forks source link

feat: add `contractSizeLimit` config to besu genesis file #53

Closed 0xDones closed 1 month ago

0xDones commented 1 year ago

Description

Even when the option maxCodeSize is provided the field config.contractSizeLimit is not created for besu genesis. I think it would be just a matter of adding the code below to the createBesuGenesis function on the file src/lib/genesisGenerate.ts

  besu.config.contractSizeLimit = quorumConfig.maxCodeSize;

According to the docs, this is a field I should set for running besu on K8s: https://besu.hyperledger.org/private-networks/how-to/configure/free-gas#2-set-the-contract-size

defiQUG commented 6 months ago

Thank you for addressing this as I have a crude workaround to get contract sizes to 65K per...

joshuafernandes commented 1 month ago

fixed in v 0.2.17