From c429b00caab96c5c6b2c116e5fe1142e150383b7 Mon Sep 17 00:00:00 2001 From: Jitendra Bhurat Date: Thu, 4 Apr 2019 10:58:44 -0400 Subject: [PATCH] Reading default transaction size limit, if it is 0 --- core/tx_pool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/tx_pool.go b/core/tx_pool.go index 30bd591f6..2b4f7a51a 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -578,6 +578,9 @@ func (pool *TxPool) local() map[common.Address]types.Transactions { func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { isQuorum := pool.chainconfig.IsQuorum sizeLimit := pool.chainconfig.TransactionSizeLimit + if sizeLimit == 0 { + sizeLimit = DefaultTxPoolConfig.TransactionSizeLimit + } if isQuorum && tx.GasPrice().Cmp(common.Big0) != 0 { return ErrInvalidGasPrice