From e8e44cd60e2d2400dcf892f083cb45f38bceeb05 Mon Sep 17 00:00:00 2001 From: Nathan Aw Date: Sun, 12 Aug 2018 20:38:07 +0800 Subject: [PATCH] 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 --- core/tx_pool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index 55c7405af..1531fd13b 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -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