mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
chore: returned period back
This commit is contained in:
parent
133e016eb7
commit
06340fcfff
2 changed files with 5 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
"arrowGlacierBlock": 0,
|
||||
"grayGlacierBlock": 0,
|
||||
"clique": {
|
||||
"period": 100,
|
||||
"period": 200,
|
||||
"epoch": 30000
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue