aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2015-07-17 06:46:48 -0400
committerPeter Todd <[email protected]>2015-07-28 15:50:13 -0400
commit0847d9cb5fcd2fdd5a21bde699944d966cf5add9 (patch)
treed98c5f3799331cd0d6ac76afa65511bde0682177 /src/init.cpp
parentOnly use randomly created nonces in CRollingBloomFilter. (diff)
downloaddiscoin-0847d9cb5fcd2fdd5a21bde699944d966cf5add9.tar.xz
discoin-0847d9cb5fcd2fdd5a21bde699944d966cf5add9.zip
Keep track of recently rejected transactions
Nodes can have divergent policies on which transactions they will accept and relay. This can cause you to repeatedly request and reject the same tx after its inved to you from various peers which have accepted it. Here we add rolling bloom filter to keep track of such rejections, clearing the filter every time the chain tip changes. Credit goes to Alex Morcos, who created the patch that this code is based on. Original code by Peter Todd. Refactored to not construct the filter at startup time by Pieter Wuille.
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions