From 06340fcffffd951e34fc34be2bf8ec4f23a478e2 Mon Sep 17 00:00:00 2001 From: Mikhail Wall Date: Wed, 12 Jun 2024 16:53:47 +0200 Subject: [PATCH] chore: returned period back --- geth-poa/genesis.json | 2 +- miner/worker.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/geth-poa/genesis.json b/geth-poa/genesis.json index 3cc9959ad073..6808476e9188 100644 --- a/geth-poa/genesis.json +++ b/geth-poa/genesis.json @@ -15,7 +15,7 @@ "arrowGlacierBlock": 0, "grayGlacierBlock": 0, "clique": { - "period": 100, + "period": 200, "epoch": 30000 } }, diff --git a/miner/worker.go b/miner/worker.go index be9e6ba873aa..be581d1e5bbc 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -805,12 +805,14 @@ func (w *worker) applyTransaction(env *environment, tx *types.Transaction) (*typ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAndNonce, interrupt *atomic.Int32, minTip *big.Int) error { var c int + var gas uint64 for _, ttxs := range txs.txs { - for range ttxs { + for _, tx := range ttxs { c++ + gas += tx.Gas } } - log.Info("committing transactions", "count", c) + log.Info("committing transactions", "count", c, "gas", gas) gasLimit := env.header.GasLimit if env.gasPool == nil {