HomePhabricator

Relay double-spends, subject to anti-DOS
d640a3ceab4fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Relay double-spends, subject to anti-DOS

Allows network wallets and other clients to see transactions that respend
a prevout already spent in an unconfirmed transaction in this node's mempool.

Knowledge of an attempted double-spend is of interest to recipients of the
first spend. In some cases, it will allow these recipients to withhold
goods or services upon being alerted of a double-spend that deprives them
of payment.

As before, respends are not added to the mempool.

Anti-Denial-of-Service-Attack provisions:

  • Use a bloom filter to relay only one respend per mempool prevout
  • Rate-limit respend relays to a default of 100 thousand bytes/minute
  • Define tx2.IsEquivalentTo(tx1): equality when scriptSigs are not considered
  • Do not relay these equivalent transactions

Remove an unused variable declaration in txmempool.cpp.

Details

Provenance
dgenr8Authored on Jun 26 2014, 06:41
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING8fbf03995df9: CBloomFilter::clear() method
Branches
Unknown
Tags
Unknown
Reverted By
rSTAGING98e84aae7ad1: Revert "Relay double-spends, subject to anti-DOS"