Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update isTxListValid
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Feb 22, 2023
1 parent 0972ca6 commit 96f2cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tx_list_validator/tx_list_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (v *TxListValidator) isTxListValid(blockID *big.Int, txListBytes []byte) (h

log.Debug("Transactions list decoded", "blockID", blockID, "length", len(txs))

if txs.Len() > int(v.maxTransactionsPerBlock) {
if txs.Len() > int(v.maxTransactionsPerBlock)+1 {
log.Info("Too many transactions", "blockID", blockID, "count", txs.Len())
return HintNone, 0
}
Expand Down

0 comments on commit 96f2cf3

Please sign in to comment.