Skip to content

Commit 0c41c10

Browse files
committed
doc: Remove shouty enums in net_processing comments
1 parent 427f8c2 commit 0c41c10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/net_processing.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,8 +2394,8 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
23942394
// empty and no one will know who we are, so these mechanisms are
23952395
// important to help us connect to the network.
23962396
//
2397-
// We skip this for BLOCK_RELAY peers to avoid potentially leaking
2398-
// information about our BLOCK_RELAY connections via address relay.
2397+
// We skip this for block-relay-only peers to avoid potentially leaking
2398+
// information about our block-relay-only connections via address relay.
23992399
if (fListen && !::ChainstateActive().IsInitialBlockDownload())
24002400
{
24012401
CAddress addr = GetLocalAddress(&pfrom.addr, pfrom.GetLocalServices());
@@ -3963,10 +3963,10 @@ void PeerManager::EvictExtraOutboundPeers(int64_t time_in_seconds)
39633963
});
39643964
}
39653965

3966-
// Check whether we have too many OUTBOUND_FULL_RELAY peers
3966+
// Check whether we have too many outbound-full-relay peers
39673967
if (m_connman.GetExtraFullOutboundCount() > 0) {
3968-
// If we have more OUTBOUND_FULL_RELAY peers than we target, disconnect one.
3969-
// Pick the OUTBOUND_FULL_RELAY peer that least recently announced
3968+
// If we have more outbound-full-relay peers than we target, disconnect one.
3969+
// Pick the outbound-full-relay peer that least recently announced
39703970
// us a new block, with ties broken by choosing the more recent
39713971
// connection (higher node id)
39723972
NodeId worst_peer = -1;
@@ -3975,7 +3975,7 @@ void PeerManager::EvictExtraOutboundPeers(int64_t time_in_seconds)
39753975
m_connman.ForEachNode([&](CNode* pnode) EXCLUSIVE_LOCKS_REQUIRED(::cs_main) {
39763976
AssertLockHeld(::cs_main);
39773977

3978-
// Only consider OUTBOUND_FULL_RELAY peers that are not already
3978+
// Only consider outbound-full-relay peers that are not already
39793979
// marked for disconnection
39803980
if (!pnode->IsFullOutboundConn() || pnode->fDisconnect) return;
39813981
CNodeState *state = State(pnode->GetId());

0 commit comments

Comments
 (0)