Skip to content

Commit

Permalink
Increase submission rate to 2 blocks per second (ethereum#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruteri authored and avalonche committed Feb 6, 2023
1 parent 83a14be commit 8d3dc07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func NewBuilder(sk *bls.SecretKey, ds flashbotsextra.IDatabaseService, relay IRe
builderPublicKey: pk,
builderSigningDomain: builderSigningDomain,

limiter: rate.NewLimiter(rate.Every(time.Second), 1),
limiter: rate.NewLimiter(rate.Every(time.Millisecond), 510),
slot: 0,
slotCtx: slotCtx,
slotCtxCancel: slotCtxCancel,
Expand Down Expand Up @@ -287,7 +287,7 @@ func (b *Builder) runBuildingJob(slotCtx context.Context, proposerPubkey boostTy
}

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

0 comments on commit 8d3dc07

Please sign in to comment.