Skip to content

Commit

Permalink
set number limit of txs in a block to 15k
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhang2023 committed Aug 20, 2024
1 parent a0f6d7b commit 55d060c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,12 @@ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAn
}
var coalescedLogs []*types.Log

blockTxLimit := 15000

for {
if env.tcount >= blockTxLimit {
break
}
// Check interruption signal and abort building if it's fired.
if interrupt != nil {
if signal := interrupt.Load(); signal != commitInterruptNone {
Expand Down

0 comments on commit 55d060c

Please sign in to comment.