Skip to content

Commit

Permalink
doc(config): improve mempool.cache-size docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Feb 14, 2024
1 parent 718339a commit 3a37576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ type MempoolConfig struct {
MaxTxsBytes int64 `mapstructure:"max-txs-bytes"`

// Size of the cache (used to filter transactions we saw earlier) in transactions
// Should be much bigger than mempool size.
CacheSize int `mapstructure:"cache-size"`

// Do not remove invalid transactions from the cache (default: false)
Expand Down
1 change: 1 addition & 0 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ size = {{ .Mempool.Size }}
max-txs-bytes = {{ .Mempool.MaxTxsBytes }}
# Size of the cache (used to filter transactions we saw earlier) in transactions
# Should be much bigger than mempool size.
cache-size = {{ .Mempool.CacheSize }}
# Do not remove invalid transactions from the cache (default: false)
Expand Down

0 comments on commit 3a37576

Please sign in to comment.