diff --git a/docs/software/commands.md b/docs/software/commands.md index 28b1436122..46fac346e1 100644 --- a/docs/software/commands.md +++ b/docs/software/commands.md @@ -19,6 +19,22 @@ Common options can be placed at any place in the command line. ## Command line options Command options can only by placed after command. +* **apply-load**: Applies Soroban transactions by repeatedly generating transactions and closing +them directly through the LedgerManager. The parameters specified below configure the network limits, and +they're all required - **--ledger-max-instructions N**, **--ledger-max-read-entries N**, **--ledger-max-write-entries N**, **--ledger-max-read-byte N**, **--ledger-max-write-bytes N**, **--ledger-max-tx-size N**, **--ledger-max-tx-count N**. This command will generate enough transactions to fill up a synthetic transaction queue (it's just a list of transactions with the same limits as the real queue), and then create a transaction set off of that to +apply. + +* At the moment, the Soroban transactions are generated using some of the same config parameters as the **generateload** command. Specifically, + `ARTIFICIALLY_GENERATE_LOAD_FOR_TESTING=true`, + `LOADGEN_NUM_DATA_ENTRIES_FOR_TESTING`, + `LOADGEN_NUM_DATA_ENTRIES_DISTRIBUTION_FOR_TESTING`, + `LOADGEN_IO_KILOBYTES_FOR_TESTING`, + `LOADGEN_IO_KILOBYTES_DISTRIBUTION_FOR_TESTING`, + `LOADGEN_TX_SIZE_BYTES_FOR_TESTING`, + `LOADGEN_TX_SIZE_BYTES_DISTRIBUTION_FOR_TESTING`, + `LOADGEN_INSTRUCTIONS_FOR_TESTING`, and + `LOADGEN_INSTRUCTIONS_DISTRIBUTION_FOR_TESTING`. + * **catchup **: Perform catchup from history archives without connecting to network. For new instances (with empty history tables - only ledger 1 present in the database) it will respect LEDGER-COUNT diff --git a/src/simulation/TxGenerator.cpp b/src/simulation/TxGenerator.cpp index 4b03d5bb06..d07380f64d 100644 --- a/src/simulation/TxGenerator.cpp +++ b/src/simulation/TxGenerator.cpp @@ -305,7 +305,7 @@ TxGenerator::createContractTransaction( { auto account = findAccount(accountId, ledgerNum); SorobanResources createResources{}; - createResources.instructions = 500'000; + createResources.instructions = 1'000'000; createResources.readBytes = contractOverheadBytes; createResources.writeBytes = 300;