Page MenuHomePhabricator

[net] Add CNode.m_relays_txs and CNode.m_bloom_filter_loaded
ClosedPublic

Authored by PiRK on Oct 31 2023, 12:11.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable