Skip to content

Commit

Permalink
Add docs and fix rebase issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Sep 17, 2024
1 parent 8cb81ed commit 23e648f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/software/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <DESTINATION-LEDGER/LEDGER-COUNT>**: 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
Expand Down
2 changes: 1 addition & 1 deletion src/simulation/TxGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 23e648f

Please sign in to comment.