Update tx_pool.go

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
This commit is contained in:
Nathan Aw 2018-08-12 20:38:07 +08:00 committed by GitHub
parent 159d813f35
commit e8e44cd60e
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