aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-09-12 13:42:52 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-09-12 22:51:46 +0200
commit36193af47c8dcff53e59498c416b85b59e0d0f91 (patch)
tree2cd1adfafb69d6e2b6e2bf627c39048692decf0a /src/net.h
parent2b08c55f01996e0b05763f05eac50b83ba9d5a8e (diff)
downloadbitcoin-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index eaa0fa3280..145b5cf666 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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};