Minor refactoring to remove implied m_addr_relay_peer.

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
This commit is contained in:
User
2019-10-31 13:42:02 -04:00
parent a552e8477c
commit b6d2183858
2 changed files with 3 additions and 8 deletions

View File

@@ -729,13 +729,12 @@ public:
// flood relay
std::vector<CAddress> vAddrToSend;
std::unique_ptr<CRollingBloomFilter> m_addr_known;
const std::unique_ptr<CRollingBloomFilter> m_addr_known;
bool fGetAddr{false};
int64_t nNextAddrSend GUARDED_BY(cs_sendProcessing){0};
int64_t nNextLocalAddrSend GUARDED_BY(cs_sendProcessing){0};
const bool m_addr_relay_peer;
bool IsAddrRelayPeer() const { return m_addr_relay_peer; }
bool IsAddrRelayPeer() const { return m_addr_known != nullptr; }
// List of block ids we still have announce.
// There is no final sorting before sending, as they are always sent immediately