DefaultMempoolConfig returns a default configuration for the Tendermint mempool
()
| 738 | |
| 739 | // DefaultMempoolConfig returns a default configuration for the Tendermint mempool |
| 740 | func 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 |
| 758 | func TestMempoolConfig() *MempoolConfig { |
no outgoing calls