Closed rootulp closed 1 month ago
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
I would slightly prefer to increase to 8MB which can path the way for increases in the cap when they come (which we will want them to).
This PR doesn't modify MaxTxBytes
and IMO that should be discussed separately. Agreed that we may want to change it based on the recently added tx size antehandler.
The motivation for this PR is to update constants based on the decrease of block time from 12 to 6 seconds (https://github.com/celestiaorg/celestia-app/issues/3959#issue-2578922762). Specifically, prior to this change, the mempool would evict transactions that are either 1m 15 seconds old or 6 blocks (i.e. 6 11.77 seconds = 70.62 seconds) old. After the block time reduction, transactions will be evicted from the mempool after 6 6 seconds = 36 seconds. If we want to retain existing mempool behavior, we should bump the TTLNumBlocks
.
Based on what you're saying why not just have a TTL based on time only (rather than num blocks)
We could. I supposed that's a breaking change to end-users but we can consider removing the TTL num blocks feature.
Motivation in the Mempool TTL duration section of https://github.com/celestiaorg/celestia-app/issues/3959#issuecomment-2405769487
Description
Modify the default consensus node config for mempools so that:
MaxTxBytes from approx 7.5 MiB to 8 MiB because it's easier to understand and communicateMaxTxsBytes from approx 37.6 MiB to 40 MiB because it's easier to understand and communicateTesting
make install && ./scripts/single-node.sh
then cat the config