aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2023-03-24 15:29:21 +0100
committerdergoegge <n.goeggi@gmail.com>2023-03-27 16:00:02 +0200
commit860402ef2ed728ef096dda4e65e77d566782209f (patch)
tree653460b0270ae67466b5aa9a867f597e75d57679 /src/net.h
parentb5a85b365a4abd98176b0935015dbb502cc3e6f6 (diff)
[net] Remove trivial GetConnectionType() getter
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net.h b/src/net.h
index 6eb35cbe13..80965e390b 100644
--- a/src/net.h
+++ b/src/net.h
@@ -418,10 +418,7 @@ public:
std::atomic_bool fPauseRecv{false};
std::atomic_bool fPauseSend{false};
- const ConnectionType& GetConnectionType() const
- {
- return m_conn_type;
- }
+ const ConnectionType m_conn_type;
/** Move all messages from the received queue to the processing queue. */
void MarkReceivedMsgsForProcessing(unsigned int recv_flood_size)
@@ -622,7 +619,6 @@ public:
private:
const NodeId id;
const uint64_t nLocalHostNonce;
- const ConnectionType m_conn_type;
std::atomic<int> m_greatest_common_version{INIT_PROTO_VERSION};
std::list<CNetMessage> vRecvMsg; // Used only by SocketHandler thread