aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-09-05 23:38:15 -0400
committerPieter Wuille <pieter@wuille.net>2023-09-07 09:04:55 -0400
commitdb9888feec48c6220a2fcf92865503bbbdab02a4 (patch)
tree8caab5c93e39ff31a57861941ec9c7411f3a1379 /src/net.h
parent91e1ef8684997fb4b3e8b64ef3935a936445066b (diff)
net: detect wrong-network V1 talking to V2Transport
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 90f5c4b388..cf7a240202 100644
--- a/src/net.h
+++ b/src/net.h
@@ -617,7 +617,7 @@ private:
/** Process bytes in m_recv_buffer, while in KEY_MAYBE_V1 state. */
void ProcessReceivedMaybeV1Bytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex);
/** Process bytes in m_recv_buffer, while in KEY state. */
- void ProcessReceivedKeyBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex);
+ bool ProcessReceivedKeyBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex, !m_send_mutex);
/** Process bytes in m_recv_buffer, while in GARB_GARBTERM state. */
bool ProcessReceivedGarbageBytes() noexcept EXCLUSIVE_LOCKS_REQUIRED(m_recv_mutex);
/** Process bytes in m_recv_buffer, while in GARBAUTH/VERSION/APP state. */