mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
chore(batch_proposer): add more check for batchTxNumThreshold (#180)
This commit is contained in:
@@ -60,6 +60,11 @@ func (w *batchProposer) tryProposeBatch() error {
|
||||
return w.createBatchForBlocks(blocks[:1])
|
||||
}
|
||||
|
||||
if blocks[0].TxNum > w.batchTxNumThreshold {
|
||||
log.Warn("too many txs even for only 1 block", "height", blocks[0].Number, "tx_num", blocks[0].TxNum)
|
||||
return w.createBatchForBlocks(blocks[:1])
|
||||
}
|
||||
|
||||
var (
|
||||
length = len(blocks)
|
||||
gasUsed, txNum uint64
|
||||
|
||||
Reference in New Issue
Block a user