Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions playground/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func init() {
register(&nullService{})
register(&OpRbuilder{})
register(&FlashblocksRPC{})
register(&Contender{})
}

func FindComponent(name string) ServiceGen {
Expand Down
20 changes: 20 additions & 0 deletions playground/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,3 +717,23 @@ func (n *nullService) Run(service *Service, ctx *ExContext) {
func (n *nullService) Name() string {
return "null"
}

type Contender struct{}

func (c *Contender) Name() string {
return "contender"
}

func (c *Contender) Run(service *Service, ctx *ExContext) {
args := []string{
"spam",
"-l", // loop indefinitely
"--min-balance", "10 ether",
"-r", Connect("el", "http"),
"--tpb", "20", // send 20 txs per block
}
service.WithImage("flashbots/contender").
WithTag("latest").
WithArgs(args...).
DependsOnHealthy("beacon")
}
2 changes: 2 additions & 0 deletions playground/recipe_buildernet.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func (b *BuilderNetRecipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest
})
}

svcManager.AddService("contender", &Contender{})

return svcManager
}

Expand Down
3 changes: 3 additions & 0 deletions playground/recipe_l1.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ func (l *L1Recipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
ValidationServer: mevBoostValidationServer,
})
}

svcManager.AddService("contender", &Contender{})

return svcManager
}

Expand Down
3 changes: 3 additions & 0 deletions playground/recipe_opstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func (o *OpRecipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
RollupNode: "op-node",
MaxChannelDuration: o.batcherMaxChannelDuration,
})

svcManager.AddService("contender", &Contender{})

return svcManager
}

Expand Down
Loading