From 09284d0830d30df8a1ca337315585daa8d93e372 Mon Sep 17 00:00:00 2001 From: Jordan Oroshiba Date: Thu, 2 Jan 2025 14:15:53 -0600 Subject: [PATCH] fix: dont timeout execution (#63) --- miner/worker.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 7b36a2e87..938c6f13d 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -21,7 +21,6 @@ import ( "fmt" "math/big" "sync/atomic" - "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" @@ -320,14 +319,10 @@ func (miner *Miner) generateWork(params *generateParams) *newPayloadResult { } if !params.noTxs { interrupt := new(atomic.Int32) - timer := time.AfterFunc(miner.config.Recommit, func() { - interrupt.Store(commitInterruptTimeout) - }) - defer timer.Stop() err := miner.fillAstriaTransactions(interrupt, work) if errors.Is(err, errBlockInterruptedByTimeout) { - log.Warn("Block building is interrupted", "allowance", common.PrettyDuration(miner.config.Recommit)) + log.Error("Block building is interrupted", "allowance", common.PrettyDuration(miner.config.Recommit)) } } body := types.Body{Transactions: work.txs, Withdrawals: params.withdrawals}