Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay first-double-spend transactions #3354

Closed

Commits on Dec 2, 2013

  1. Detect double spends, and fire a DetectedDoubleSpend signal

    Detects two double-spend conditions:
    1) Receive a transaction that conflicts with a mempool transaction
    2) New block contains a transaction that conflicts with a mempool transaction
    
    ... and fires a new signal. Future commits will use this signal handler
    to note the double-spend attempt if the transactions are in our wallet,
    and will relay first double-spends.
    gavinandresen committed Dec 2, 2013
    Copy the full SHA
    b5baeaf View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ec7e5a8 View commit details
    Browse the repository at this point in the history
  3. Relay first-double-spend transactions

    Instead of dropping double-spent transactions, relay them to peers.
    Why? To make it easier for merchants to quickly detect attempted
    fraud for low-value, in-person purchases.
    
    A bloom filter is used so that only the first double-spend is
    relayed, to prevent an attacker from mounting a network
    denial-of-service attack by flooding it with double-spends of
    a transaction output they control.
    gavinandresen committed Dec 2, 2013
    Copy the full SHA
    9344275 View commit details
    Browse the repository at this point in the history