Skip to content

Commit

Permalink
inc tx size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Jun 8, 2024
1 parent 51d6f26 commit 2d8808b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
}

// Heuristic limit, reject transactions over 32KB to prevent DOS attacks
if tx.Size() > 32*1024 {
// test size increase TODO: bring over EIP2464 from XDPoS to allow actual 128KB
if tx.Size() > 128*1024 {
return ErrOversizedData
}
// Transactions can't be negative. This may never happen using RLP decoded
Expand Down

0 comments on commit 2d8808b

Please sign in to comment.