Skip to content

Commit

Permalink
net: filteradd message: update bloom filter empty/full flags after ad…
Browse files Browse the repository at this point in the history
…ding

fixes #16886, discovered by alexzk1
(slight performance improvement)
  • Loading branch information
theStack committed Sep 19, 2019
1 parent 7d4bc60 commit 9a2eee9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
LOCK(pfrom->m_tx_relay->cs_filter);
if (pfrom->m_tx_relay->pfilter) {
pfrom->m_tx_relay->pfilter->insert(vData);
pfrom->m_tx_relay->pfilter->UpdateEmptyFull();
} else {
bad = true;
}
Expand Down

0 comments on commit 9a2eee9

Please sign in to comment.