Skip to content

Commit

Permalink
chore: returned period back
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Jun 12, 2024
1 parent 133e016 commit 06340fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geth-poa/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"clique": {
"period": 100,
"period": 200,
"epoch": 30000
}
},
Expand Down
6 changes: 4 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 06340fc

Please sign in to comment.