MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / DefaultMempoolConfig

Function DefaultMempoolConfig

config/config.go:740–755  ·  view source on GitHub ↗

DefaultMempoolConfig returns a default configuration for the Tendermint mempool

()

Source from the content-addressed store, hash-verified

738
739// DefaultMempoolConfig returns a default configuration for the Tendermint mempool
740func DefaultMempoolConfig() *MempoolConfig {
741 return &MempoolConfig{
742 Version: MempoolV0,
743 Recheck: true,
744 Broadcast: true,
745 WalPath: "",
746 // Each signature verification takes .5ms, Size reduced until we implement
747 // ABCI Recheck
748 Size: 5000,
749 MaxTxsBytes: 1024 * 1024 * 1024, // 1GB
750 CacheSize: 10000,
751 MaxTxBytes: 1024 * 1024, // 1MB
752 TTLDuration: 0 * time.Second,
753 TTLNumBlocks: 0,
754 }
755}
756
757// TestMempoolConfig returns a configuration for testing the Tendermint mempool
758func TestMempoolConfig() *MempoolConfig {

Callers 4

initFunction · 0.92
initFunction · 0.92
DefaultConfigFunction · 0.85
TestMempoolConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMempoolConfigFunction · 0.68