chore: returned period back

This commit is contained in:
Mikhail Wall 2024-06-12 16:53:47 +02:00
parent 133e016eb7
commit 06340fcfff
2 changed files with 5 additions and 3 deletions

View file

@ -15,7 +15,7 @@
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"clique": {
"period": 100,
"period": 200,
"epoch": 30000
}
},

View file

@ -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 {