diff --git a/README.md b/README.md index 7c70e8c..5331b30 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ $ builder-playground cook l1 --latest-fork --output ~/my-builder-testnet --genes - `--log-level` (string): Log level to use (debug, info, warn, error, fatal). Defaults to `info`. - `--labels` (key=val): Custom labels to apply to your deployment. - `--disable-logs` (bool): Disable the logs for the services. Defaults to `false`. +- `--contender` (bool): Enable [contender](https://github.com/flashbots/contender) spammer. Required to use other contender flags. + - `--contender.arg` (string): Pass custom args to the contender CLI. + Example: `--contender.arg "--tpb 20"` + - `--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". To stop the playground, press `Ctrl+C`. diff --git a/playground/components.go b/playground/components.go index 2ea62bf..ee70830 100644 --- a/playground/components.go +++ b/playground/components.go @@ -906,6 +906,10 @@ func (c *Contender) Run(service *Service, ctx *ExContext) { if flag == "-r" && seen["--rpc-url"] { return true } + if (flag == "--tpb" || flag == "--txs-per-second" || flag == "--tps" || flag == "--txs-per-block") && + (seen["--tpb"] || seen["--tps"] || seen["--txs-per-second"] || seen["--txs-per-block"]) { + return true + } return false }