Skip to content

Commit 838b0fb

Browse files
committed
spam L1 with contender once stack is up
1 parent 863477d commit 838b0fb

File tree

5 files changed

+29
-0
lines changed

5 files changed

+29
-0
lines changed

playground/catalog.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func init() {
2424
register(&nullService{})
2525
register(&OpRbuilder{})
2626
register(&FlashblocksRPC{})
27+
register(&Contender{})
2728
}
2829

2930
func FindComponent(name string) ServiceGen {

playground/components.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,3 +717,23 @@ func (n *nullService) Run(service *Service, ctx *ExContext) {
717717
func (n *nullService) Name() string {
718718
return "null"
719719
}
720+
721+
type Contender struct{}
722+
723+
func (c *Contender) Name() string {
724+
return "contender"
725+
}
726+
727+
func (c *Contender) Run(service *Service, ctx *ExContext) {
728+
args := []string{
729+
"spam",
730+
"-l", // loop indefinitely
731+
"--min-balance", "10 ether",
732+
"-r", Connect("el", "http"),
733+
"--tpb", "20", // send 20 txs per block
734+
}
735+
service.WithImage("flashbots/contender").
736+
WithTag("latest").
737+
WithArgs(args...).
738+
DependsOnHealthy("beacon")
739+
}

playground/recipe_buildernet.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ func (b *BuilderNetRecipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest
5959
})
6060
}
6161

62+
svcManager.AddService("contender", &Contender{})
63+
6264
return svcManager
6365
}
6466

playground/recipe_l1.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ func (l *L1Recipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
106106
ValidationServer: mevBoostValidationServer,
107107
})
108108
}
109+
110+
svcManager.AddService("contender", &Contender{})
111+
109112
return svcManager
110113
}
111114

playground/recipe_opstack.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ func (o *OpRecipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
126126
RollupNode: "op-node",
127127
MaxChannelDuration: o.batcherMaxChannelDuration,
128128
})
129+
130+
svcManager.AddService("contender", &Contender{})
131+
129132
return svcManager
130133
}
131134

0 commit comments

Comments
 (0)