aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/node.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-05-29 11:33:17 -0700
committerPieter Wuille <[email protected]>2020-07-08 18:29:56 -0700
commit43f02ccbff9b137d59458da7a8afdb0bf80e127f (patch)
tree336adbc240caad2a74572aee912f11d92e9da820 /src/interfaces/node.cpp
parentIntroduce constant for mempool-based relay separate from mapRelay caching (diff)
downloaddiscoin-43f02ccbff9b137d59458da7a8afdb0bf80e127f.tar.xz
discoin-43f02ccbff9b137d59458da7a8afdb0bf80e127f.zip
Only respond to requests for recently announced transactions
... unless they're UNCONDITIONAL_RELAY_DELAY old, or there has been a response to a MEMPOOL request in the mean time. This is accomplished using a rolling Bloom filter for the last 3500 announced transactions. The probability of seeing more than 100 broadcast events (which can be up to 35 txids each) in 2 minutes for an outbound peer (where the average frequency is one per minute), is less than 1 in a million.
Diffstat (limited to 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions