From 1bc950cf1a2fa7f6127179e33bbb225255d93128 Mon Sep 17 00:00:00 2001 From: yzang2019 Date: Wed, 7 Aug 2024 23:11:32 -0700 Subject: [PATCH] Fix --- internal/mempool/mempool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mempool/mempool.go b/internal/mempool/mempool.go index 38f8e4127..45ec7ee6f 100644 --- a/internal/mempool/mempool.go +++ b/internal/mempool/mempool.go @@ -369,7 +369,7 @@ func (txmp *TxMempool) CheckTx( } func (txmp *TxMempool) shouldExclude(wtx *WrappedTx) bool { - return txmp.config.MaxTxGas > 0 && wtx.gasWanted > txmp.config.MaxTxsBytes + return txmp.config.MaxTxGasWanted > 0 && wtx.gasWanted > txmp.config.MaxTxsBytes } func (txmp *TxMempool) isInMempool(tx types.Tx) bool {