Merge pull request #510 from nathanawmk/master

Update max transaction size limit.
This commit is contained in:
Samer Falah 2018-11-23 10:16:54 -05:00 committed by GitHub
commit 40cf04732e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -558,7 +558,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
return ErrInvalidGasPrice
}
// Heuristic limit, reject transactions over 32KB to prevent DOS attacks
if tx.Size() > 32*1024 {
// UPDATED to 64KB to support the deployment of bigger contract due to the pressing need for sophisticated/complex contract in financial/capital markets - Nathan Aw
if tx.Size() > 64*1024 {
return ErrOversizedData
}
// Transactions can't be negative. This may never happen using RLP decoded