mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
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.
This commit is contained in:
parent
8fbf03995d
commit
d640a3ceab
6 changed files with 109 additions and 15 deletions
|
|
@ -1175,6 +1175,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
LogPrintf("mapAddressBook.size() = %u\n", pwalletMain ? pwalletMain->mapAddressBook.size() : 0);
|
||||
#endif
|
||||
|
||||
RegisterInternalSignals();
|
||||
StartNode(threadGroup);
|
||||
if (fServer)
|
||||
StartRPCThreads();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue