add --contender.arg flag #195
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds a new flag
--contender.arg
, which may be specified multiple times, that passes arbitrary args to contender, complete with default values and the ability to override them, as well as passing additional args.example:
to see that this is working, run
docker ps
, get the container ID of contender, then rundocker logs $CONTAINER_ID
. You should see 21 accounts getting funded (the default account always gets funded, maybe should fix), and 100 txs being sent. Something like this:$ docker logs ffdd2bc90da3 2025-08-13T00:08:40.961364Z INFO contender: 83: generating seed file at /root/.contender/seed 2025-08-13T00:08:40.986774Z INFO contender::default_scenarios::fill_block: 57: Attempting to fill blocks with 36000000 gas; sending 100 txs, each with gas limit 360000. 2025-08-13T00:08:40.986788Z INFO contender::commands::spam: 139: Initializing spammer... 2025-08-13T00:08:41.009647Z WARN contender::util::utils: 127: No private keys provided. Using default private keys. 2025-08-13T00:08:41.014946Z INFO contender::util::utils: 292: sending funding txs (21 accounts)... 2025-08-13T00:08:41.015161Z INFO contender::util::utils: 329: waiting for funding tasks to finish...
note: you can also pass positional args, which enables you to run builtin scenarios, and pass them args if needed: