Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit d642ecf

Browse files
Ruteriavalonche
authored andcommitted
Increase submission rate to 2 blocks per second (#47)
1 parent 93574bb commit d642ecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func NewBuilder(sk *bls.SecretKey, ds flashbotsextra.IDatabaseService, relay IRe
8282
builderPublicKey: pk,
8383
builderSigningDomain: builderSigningDomain,
8484

85-
limiter: rate.NewLimiter(rate.Every(time.Second), 1),
85+
limiter: rate.NewLimiter(rate.Every(time.Millisecond), 510),
8686
slot: 0,
8787
slotCtx: slotCtx,
8888
slotCtxCancel: slotCtxCancel,
@@ -287,7 +287,7 @@ func (b *Builder) runBuildingJob(slotCtx context.Context, proposerPubkey boostTy
287287
}
288288

289289
// resubmits block builder requests every second
290-
runRetryLoop(ctx, time.Second, func() {
290+
runRetryLoop(ctx, 500*time.Millisecond, func() {
291291
log.Debug("retrying BuildBlock", "slot", attrs.Slot, "parent", attrs.HeadHash)
292292
err := b.eth.BuildBlock(attrs, blockHook)
293293
if err != nil {

0 commit comments

Comments
 (0)