diff --git a/src/net_processing.cpp b/src/net_processing.cpp index d6504de62b..fbba2fbecd 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -480,9 +480,9 @@ struct Peer { /** Number of addresses that can be processed from this peer. Start at 1 to * permit self-announcement. */ - double m_addr_token_bucket GUARDED_BY(NetEventsInterface::g_msgproc_mutex){1.0}; + double m_addr_token_bucket{1.0}; /** When m_addr_token_bucket was last updated */ - std::chrono::microseconds m_addr_token_timestamp GUARDED_BY(NetEventsInterface::g_msgproc_mutex){GetTime()}; + std::chrono::microseconds m_addr_token_timestamp{GetTime()}; /** Total number of addresses that were dropped due to rate limiting. */ std::atomic m_addr_rate_limited{0}; /** Total number of addresses that were processed (excludes rate-limited ones). */