Skip to content

Commit 376f88e

Browse files
authored
Merge pull request #197 from flashbots/feat/contender-readme
add contender flag info to readme
2 parents 9f710c1 + 1c6a63a commit 376f88e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ $ builder-playground cook l1 --latest-fork --output ~/my-builder-testnet --genes
6868
- `--log-level` (string): Log level to use (debug, info, warn, error, fatal). Defaults to `info`.
6969
- `--labels` (key=val): Custom labels to apply to your deployment.
7070
- `--disable-logs` (bool): Disable the logs for the services. Defaults to `false`.
71+
- `--contender` (bool): Enable [contender](https://github.com/flashbots/contender) spammer. Required to use other contender flags.
72+
- `--contender.arg` (string): Pass custom args to the contender CLI.
73+
Example: `--contender.arg "--tpb 20"`
74+
- `--contender.target` (string): Change the default target node to spam. On the `l1` recipe, the default is "el", and on `opstack` it's "op-geth".
7175

7276
To stop the playground, press `Ctrl+C`.
7377

playground/components.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,10 @@ func (c *Contender) Run(service *Service, ctx *ExContext) {
906906
if flag == "-r" && seen["--rpc-url"] {
907907
return true
908908
}
909+
if (flag == "--tpb" || flag == "--txs-per-second" || flag == "--tps" || flag == "--txs-per-block") &&
910+
(seen["--tpb"] || seen["--tps"] || seen["--txs-per-second"] || seen["--txs-per-block"]) {
911+
return true
912+
}
909913
return false
910914
}
911915

0 commit comments

Comments
 (0)