Skip to content

Commit

Permalink
chore: update deafult mempool size to match ttl and block size (#2681)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
evan-forbes authored Oct 16, 2023
1 parent 4669019 commit 2bf9999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/default_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bf9999

Please sign in to comment.