TXs with higher fees do not appear to be prioritised (via P2P) over lower fee TXs #21693

issue rebroad opened this issue on April 15, 2021
  1. rebroad commented at 12:20 PM on April 15, 2021: contributor

    After connecting a node with an empty mempool to the network I noticed that the mempool fills in such a way that it seems obvious that there is no prioritization of TXs based on their fee per byte.

    Given that miners DO prioritize these TXs, then would it not make sense for the protocol to do so also?

  2. rebroad added the label Bug on Apr 15, 2021
  3. rebroad renamed this:
    TXs with higher Sat/B do not appear to be prioritised over lower fee TXs
    TXs with higher fees do not appear to be prioritised (via P2P) over lower fee TXs
    on Apr 15, 2021
  4. rebroad commented at 12:27 PM on April 15, 2021: contributor

    idea so far: expand the protocol so that a node can declare to another node what it's mempool size is so that nodes can provide TXs only from that upper portion of their mempool.

    Or in reverse, a node could receive information from a node such that it can set the minrelayfee accordingly. i.e. a node could share how any MBs of fees exist in different fee bands (rather than revealing it's maxmempool, although perhaps it can be worked out from this anyway, so might as well just reveal the size, or a number close to it, as minrelayfee already does).

  5. ajtowns commented at 8:01 AM on April 20, 2021: member

    Nodes don't share their entire mempool, just new transactions that come in. Those transactions are prioritised by fee rate, see the code around // Topologically and fee-rate sort the inventory we send for privacy and priority reasons. in net_processing.cpp, though this will only have much effect when a lot of new transactions are being relayed at once.

  6. rebroad closed this on Apr 29, 2021

  7. DrahtBot locked this on Aug 18, 2022
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me