Skip to content

Detect mempool changes for getblocktemplate long polling with a channel #5891

Description

Motivation

We could help miners collect higher fees, shorten the wait-time for transactions to be mined, and make Zebra more efficient by returning from long polling immediately when the mempool changes.

Possible Designs

  • Add a channel from the transaction verifier to the RPC server
  • Send a message to the RPC server when mempool transactions are verified
  • Debounce those messages
  • Fetch mempool transactions when new transactions are verified instead of at a fixed interval

Possible Alternatives

We could instead check the mempool more frequently or at a configurable interval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-concurrencyArea: Async code, needs extra work to make it work properly.A-rpcArea: Remote Procedure Call interfacesA-rustArea: Updates to Rust codeC-enhancementCategory: This is an improvementS-needs-triageStatus: A bug report needs triage

    Projects

    • Status

      Product Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions