diff --git a/src/net.cpp b/src/net.cpp index bb37b1cad152c..d3ca3ea64a222 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2578,7 +2578,7 @@ CConnman::~CConnman() size_t CConnman::GetAddressCount() const { - return addrman.size(); + return addrman.Size(); } std::vector CConnman::GetAddresses(size_t max_addresses, size_t max_pct, std::optional network) const diff --git a/src/net.h b/src/net.h index e846c854b36ad..a4c8447e00237 100644 --- a/src/net.h +++ b/src/net.h @@ -387,6 +387,8 @@ class CNode Mutex cs_vRecv; uint64_t nRecvBytes GUARDED_BY(cs_vRecv){0}; + mapMsgTypeSize mapSendBytesPerMsgType GUARDED_BY(cs_vSend); + mapMsgTypeSize mapRecvBytesPerMsgType GUARDED_BY(cs_vRecv); std::atomic m_last_send{0s}; std::atomic m_last_recv{0s}; @@ -637,9 +639,6 @@ class CNode CService addrLocal GUARDED_BY(m_addr_local_mutex); mutable Mutex m_addr_local_mutex; - mapMsgTypeSize mapSendBytesPerMsgType GUARDED_BY(cs_vSend); - mapMsgTypeSize mapRecvBytesPerMsgType GUARDED_BY(cs_vRecv); - /** * If an I2P session is created per connection (for outbound transient I2P * connections) then it is stored here so that it can be destroyed when the diff --git a/src/statsd_client.cpp b/src/statsd_client.cpp index f9fe7c5652619..46c769d0290bd 100644 --- a/src/statsd_client.cpp +++ b/src/statsd_client.cpp @@ -37,7 +37,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include -#include +#include #include "statsd_client.h" #include