Skip to content

Commit ccb67cb

Browse files
chore: deprecate KeepInvalidTxsInCache (#2623)
## Description Fixes #2587
1 parent 267837f commit ccb67cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ type MempoolConfig struct {
821821
// Do not remove invalid transactions from the cache (default: false)
822822
// Set to true if it's not possible for any invalid transaction to become
823823
// valid again in the future.
824+
// Deprecated: KeepInvalidTxsInCache is deprecated and will be removed in a future version.
824825
KeepInvalidTxsInCache bool `mapstructure:"keep-invalid-txs-in-cache"`
825826
// Maximum size of a single transaction
826827
// NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.

config/toml.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ cache_size = {{ .Mempool.CacheSize }}
397397
# Do not remove invalid transactions from the cache (default: false)
398398
# Set to true if it's not possible for any invalid transaction to become valid
399399
# again in the future.
400+
# DEPRECATED: keep-invalid-txs-in-cache is deprecated and will be removed in a future version.
400401
keep-invalid-txs-in-cache = {{ .Mempool.KeepInvalidTxsInCache }}
401402
402403
# Maximum size of a single transaction.

0 commit comments

Comments
 (0)