diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 13:42:52 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 22:51:46 +0200 |
commit | 36193af47c8dcff53e59498c416b85b59e0d0f91 (patch) | |
tree | 2cd1adfafb69d6e2b6e2bf627c39048692decf0a /src/net.h | |
parent | 2b08c55f01996e0b05763f05eac50b83ba9d5a8e (diff) | |
download | bitcoin-36193af47c8dcff53e59498c416b85b59e0d0f91.tar.xz |
[refactor] Remove netaddress.h from kernel headers
Move functions requiring the netaddress.h include out of
libbitcoinkernel source files.
The netaddress.h file contains many non-consensus related definitions
and should thus not be part of the libbitcoinkernel. This commit makes
netaddress.h no longer a required include for users of the
libbitcoinkernel.
This commit is part of the libbitcoinkernel project, namely its stage 1
step 3: Decouple most non-consensus headers from libbitcoinkernel.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1358,6 +1358,9 @@ private: // Whether the node should be passed out in ForEach* callbacks static bool NodeFullyConnected(const CNode* pnode); + uint16_t GetDefaultPort(Network net) const; + uint16_t GetDefaultPort(const std::string& addr) const; + // Network usage totals mutable Mutex m_total_bytes_sent_mutex; std::atomic<uint64_t> nTotalBytesRecv{0}; |