Skip to content

Mempool leak through the eviction policy #31211

Open
@naumenkogs

Description

A spy can see whether a transaction exists in a target node's mempool before the node INV-announces it (overcoming the trickle protection).

  1. Fill all the inbound slots of the target (up to 117 by default), and make sure your connections are not protected from eviction (e.g., delay block delivery to the target, etc).
  2. Relay txA to the peer from connection CSpy.
  3. Issue more connections to the target (say, 100 more).
  4. If CSpy was not evicted while others were, it's likely CSpy was protected because it provided a new transaction txA.

It's quite hard to pull off due to a lot of noise.

A potential solution is a rolling window of recent transactions (say 1000) instead of the very recent ones.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions