Skip to content

Commit

Permalink
merge v25 upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopp committed Jun 4, 2023
1 parent f5f782c commit 54c3ffd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2578,7 +2578,7 @@ CConnman::~CConnman()

size_t CConnman::GetAddressCount() const
{
return addrman.size();
return addrman.Size();
}

std::vector<CAddress> CConnman::GetAddresses(size_t max_addresses, size_t max_pct, std::optional<Network> network) const
Expand Down
5 changes: 2 additions & 3 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::chrono::seconds> m_last_send{0s};
std::atomic<std::chrono::seconds> m_last_recv{0s};
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/statsd_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <util/system.h>
#include <common/args.h>
#include "statsd_client.h"
#include <fcntl.h>

Expand Down

0 comments on commit 54c3ffd

Please sign in to comment.