HomePhabricator

[net] Add CNode.m_relays_txs and CNode.m_bloom_filter_loaded

Description

[net] Add CNode.m_relays_txs and CNode.m_bloom_filter_loaded

Summary:
We'll move the transaction relay data into Peer in subsequent commits,
but the inbound eviction logic needs to know if the peer is relaying
txs and if the peer has loaded a bloom filter.

This is currently redundant information with m_tx_relay->fRelayTxes,
but when m_tx_relay is moved into net_processing, then we'll need these
separate fields in CNode.

Partial backport of core#21160
https://github.com/bitcoin/bitcoin/pull/21160/commits/36346703f8558d6781c079c29ddece5a97477beb

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14709

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Jan 27 2021, 20:44
PiRKCommitted on Nov 1 2023, 16:54
PiRKPushed on Nov 1 2023, 16:54
Reviewer
Restricted Project
Differential Revision
D14709: [net] Add CNode.m_relays_txs and CNode.m_bloom_filter_loaded
Parents
rABC480c16cf2ec7: tests: add feature_bind_port_*.py to EXTRA_PRIVILEGES_TESTS
Branches
Unknown
Tags
Unknown