diff options
author | Peter Todd <pete@petertodd.org> | 2015-07-17 06:46:48 -0400 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2015-07-28 15:50:13 -0400 |
commit | 0847d9cb5fcd2fdd5a21bde699944d966cf5add9 (patch) | |
tree | d98c5f3799331cd0d6ac76afa65511bde0682177 /src/keystore.cpp | |
parent | d741371d7d27e228aa64c618c50b23fb5449c3e1 (diff) |
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/keystore.cpp')
0 files changed, 0 insertions, 0 deletions