@@ -28,5 +28,8 @@ namespace Nethermind.TxPool
         
         [ConfigItem(DefaultValue = "5")]
         int PeerNotificationThreshold { get; set; }
+        
+        [ConfigItem(DefaultValue = "2048", Description = "Max number of transactions held in mempool (more transactions in mempool mean more memory used")]
+        public int Size { get; set; }
     }
 }
﻿//  Copyright (c) 2018 Demerzel Solutions Limited
//  This file is part of the Nethermind library.
// 
//  The Nethermind library is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
// 
//  The Nethermind library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//  GNU Lesser General Public License for more details.
// 
//  You should have received a copy of the GNU Lesser General Public License
//  along with the Nethermind. If not, see <http://www.gnu.org/licenses/>.

using Nethermind.Config;

namespace Nethermind.TxPool
{
    public interface ITxPoolConfig : IConfig
    {
        [ConfigItem(DefaultValue = "15")]
        int ObsoletePendingTransactionInterval { get; set; }
        
        [ConfigItem(DefaultValue = "600")]
        int RemovePendingTransactionInterval { get; set; }
        
        [ConfigItem(DefaultValue = "5")]
        int PeerNotificationThreshold { get; set; }
    }
}
Does it implement it in interface (public?), if yes init to default size. If we want to implement it in class remove public?