Skip to content

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

Description

@arya2

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions