From d77f4057e4871657feccebdbd730ea37be4e2733 Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Wed, 5 Jun 2024 14:42:47 +0200 Subject: [PATCH] Don't use cached config in iteratively called function --- execution/gethexec/sequencer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution/gethexec/sequencer.go b/execution/gethexec/sequencer.go index 10939cda3a..2ba286aac7 100644 --- a/execution/gethexec/sequencer.go +++ b/execution/gethexec/sequencer.go @@ -1131,7 +1131,7 @@ func (s *Sequencer) Start(ctxIn context.Context) error { } s.CallIteratively(func(ctx context.Context) time.Duration { - nextBlock := time.Now().Add(config.MaxBlockSpeed) + nextBlock := time.Now().Add(s.config().MaxBlockSpeed) if s.createBlock(ctx) { // Note: this may return a negative duration, but timers are fine with that (they treat negative durations as 0). return time.Until(nextBlock)