Skip to content

Commit

Permalink
feat!: override default mempool params (celestiaorg#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp authored and rach-id committed Nov 16, 2022
1 parent ee081ed commit c2fc9dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func NewRootCmd() *cobra.Command {
}

tmCfg := tmcfg.DefaultConfig()
tmCfg.Mempool.TTLNumBlocks = 10
tmCfg.Mempool.MaxTxBytes = 2 * 1024 * 1024 // 2 MiB
tmCfg.Mempool.Version = "v1" // prioritized mempool

customAppTemplate, customAppConfig := initAppConfig()
return server.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig, tmCfg)
Expand Down

0 comments on commit c2fc9dd

Please sign in to comment.