Skip to content

Commit

Permalink
tweak(stage_sequence_exec_tx): time tx retrieval (0xPolygonHermez#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
revitteth authored Sep 26, 2024
1 parent 3c0bac5 commit 883ed2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zk/stages/stage_sequence_execute_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func getNextPoolTransactions(ctx context.Context, cfg SequenceBlockCfg, executio

gasLimit := utils.GetBlockGasLimitForFork(forkId)

ti := utils.StartTimer("txpool", "get-transactions")
defer ti.LogTimer()

if err := cfg.txPoolDb.View(ctx, func(poolTx kv.Tx) error {
slots := types2.TxsRlp{}
if allConditionsOk, _, err = cfg.txPool.YieldBest(cfg.yieldSize, &slots, poolTx, executionAt, gasLimit, alreadyYielded); err != nil {
Expand Down

0 comments on commit 883ed2b

Please sign in to comment.