From 0dfe6704947ed513bcf6fd024b02c97ed71af98a Mon Sep 17 00:00:00 2001 From: Evan Forbes <42654277+evan-forbes@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:45:51 -0500 Subject: [PATCH] chore: update deafult mempool size to match ttl and block size (#2681) ## Overview The default mempool size should match that of the default TTL and block size. ## Checklist - [x] New and updated code has appropriate documentation - [x] New and updated code has new and/or updated testing - [x] Required CI checks are passing - [x] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords (cherry picked from commit 2bf99995ea42c27a5aec22587b1a08247317f12c) --- app/default_overrides.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/default_overrides.go b/app/default_overrides.go index ec35228443..c851581f32 100644 --- a/app/default_overrides.go +++ b/app/default_overrides.go @@ -225,6 +225,7 @@ func DefaultConsensusConfig() *tmcfg.Config { // version. This acts as a first line of DoS protection upperBoundBytes := appconsts.DefaultSquareSizeUpperBound * appconsts.DefaultSquareSizeUpperBound * appconsts.ContinuationSparseShareContentSize cfg.Mempool.MaxTxBytes = upperBoundBytes + cfg.Mempool.MaxTxsBytes = int64(upperBoundBytes) * cfg.Mempool.TTLNumBlocks cfg.Mempool.Version = "v1" // prioritized mempool cfg.Consensus.TimeoutPropose = appconsts.TimeoutPropose