Welcome to CosVM
  • 🕧What is CosVM?
  • 🚧Technical structure
  • ⛓️User Guide
    • CVM Wallet Configuration
    • CVM Wallet App
    • MetaMask Configuration
    • Keplr Wallet Configuration
    • Trust Wallet
  • 🔯Developer Docs
    • 🉑Concepts
      • Accounts
      • Chain ID
      • Overview of Gas and Fees on CosVM Blockchain
      • Tokenomics of CosVM Blockchain
      • Token
      • Transactions
      • Tokens Transfer
      • Gas and Fees
    • Getting Started
    • Smart Contracts
      • Evm Extension
        • Authorization
        • Types
        • Staking
        • Distribution
        • IBC Transfer
    • 🔍CosVM Block Explorer
    • Mainnet
    • Wallet Integration
    • Other Tools
      • Contract Verification
      • Smart Contract Development Tools:
    • API
      • Network
      • Ethereum JSON-RPC
        • API Method
      • Cosmos gRPC & REST
      • Tendermint RPC
    • Cosvm using Docker
    • DAPPS
      • Getting Started
      • 🫂CVM dApps
  • 🈳Validator Docs
    • Validator Overview
    • Installation Reqirement
    • Run a Validator
    • Launch a CVM Node
    • Launch Multi CVM Node
    • Disk Optimization
    • State Sync
    • Mempool
    • ❄️IBC
      • IBC
      • IBC Relaying Guide
  • ❓Why Use CosVM
  • 🔐Safety & Security
  • ⁉️FAQs
Powered by GitBook
On this page
  • 1. FIFO Mempool
  • 2. Prioritized Mempool
  • Configuration Steps:
  • Additional Resources:
  1. Validator Docs

Mempool

PreviousState SyncNextIBC

Last updated 1 year ago

The mempool (memory pool) is a critical component in Tendermint-based blockchains, responsible for storing uncommitted transactions awaiting inclusion in a block. , integrated into Tendermint, offers different mempool options, enabling developers to manage transaction ordering and selection. Here are the available mempool options within CosVM:

1. FIFO Mempool

Functionality:

Follows a first-in-first-out (FIFO) principle. Transactions are ordered solely based on their arrival at the node. The first transaction received is the first to be processed, including gossiping to other peers and block inclusion.

Use Case:

Suitable for straightforward transaction ordering without prioritization based on fees or incentives.

2. Prioritized Mempool

  • Introduced: Tendermint v0.35 (backported to v0.34.20)

  • Purpose: Enables validators to prioritize transactions based on associated fees or other incentive mechanisms.

  • Usage with : Supports EIP-1559 EVM transactions through the fee-market module, utilizing base fees and selectable priority tips to determine total transaction fees.

  • Transaction Ordering: In the prioritized mempool, transactions for the next block are selected in order of priority (typically based on fees) from highest to lowest.

  • Overflow Handling: If the mempool reaches capacity, lower-priority transactions may be removed to accommodate higher-priority incoming transactions.

  • Note: Transaction processing follows priority order, but transaction gossiping adheres to FIFO.

Configuration Steps:

  1. Adjustment in Node Configuration:

    • Edit the config.toml file at ~/.cvmd/config/config.toml.

    • Locate the [mempool] section.

    • Set version = "v1" to enable the prioritized mempool.

    • The default value version = "v0" signifies the traditional FIFO mempool.

  2. Restart Node:

    • After making changes in the config.toml file, restart the node for the modifications to take effect.

Additional Resources:

For more comprehensive information and details:

These resources offer deeper insights into the technical aspects and implications of using different mempool options in CosVM, aiding developers in making informed decisions regarding transaction handling and prioritization strategies.

To utilize the prioritized mempool in , follow these steps for configuration:

- Mempool Refactor: Provides technical insights into mempool changes.

Offers updates and details on the new mempool features.

Information on the fee market change in the Ethereum 1.0 chain.

Further details and discussions on how EIP-1559 alters Ethereum's fee mechanism.

🈳
CosVM
CosVM
CosVM
Tendermint ADR-067
Tendermint v0.35 Announcement Blogpost:
EIP-1559:
EIP-1559 FAQ and Blogpost: