mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-16 20:26:12 +00:00
mempool: migrate rechecktx to be a consensus parameter (#8514)
This commit is contained in:
+4
-4
@@ -734,9 +734,10 @@ func TestP2PConfig() *P2PConfig {
|
||||
|
||||
// MempoolConfig defines the configuration options for the Tendermint mempool.
|
||||
type MempoolConfig struct {
|
||||
RootDir string `mapstructure:"home"`
|
||||
Recheck bool `mapstructure:"recheck"`
|
||||
Broadcast bool `mapstructure:"broadcast"`
|
||||
RootDir string `mapstructure:"home"`
|
||||
|
||||
// Whether to broadcast transactions to other nodes
|
||||
Broadcast bool `mapstructure:"broadcast"`
|
||||
|
||||
// Maximum number of transactions in the mempool
|
||||
Size int `mapstructure:"size"`
|
||||
@@ -783,7 +784,6 @@ type MempoolConfig struct {
|
||||
// DefaultMempoolConfig returns a default configuration for the Tendermint mempool.
|
||||
func DefaultMempoolConfig() *MempoolConfig {
|
||||
return &MempoolConfig{
|
||||
Recheck: true,
|
||||
Broadcast: true,
|
||||
// Each signature verification takes .5ms, Size reduced until we implement
|
||||
// ABCI Recheck
|
||||
|
||||
+5
-1
@@ -355,7 +355,11 @@ recv-rate = {{ .P2P.RecvRate }}
|
||||
#######################################################
|
||||
[mempool]
|
||||
|
||||
recheck = {{ .Mempool.Recheck }}
|
||||
# recheck has been moved from a config option to a global
|
||||
# consensus param in v0.36
|
||||
# See https://github.com/tendermint/tendermint/issues/8244 for more information.
|
||||
|
||||
# Set true to broadcast transactions in the mempool to other nodes
|
||||
broadcast = {{ .Mempool.Broadcast }}
|
||||
|
||||
# Maximum number of transactions in the mempool
|
||||
|
||||
Reference in New Issue
Block a user